Files
cinderlib/travis-scripts/build
Gorka Eguileor de1ee38d4d Add LVM CI job
This patch adds several CI jobs:

- PEP8
- Unit tests
- LVM

It also changes how we build our images. Now we only push a new image to
Docker Hub if the tests pass successfully.  And we only bother to build
the images if PEP8, Unit tests, and LVM jobs run successfully.
2018-09-06 08:43:28 +02:00

14 lines
448 B
Bash
Executable File

#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
. "$DIR/set-tags"
set -ev
for tag_info_string in $TAGS; do
IFS=';' read -a tag_info <<< "$tag_info_string"
echo "Building ${tag_info[3]} using ${tag_info[0]} ..."
docker build --build-arg RELEASE=${tag_info[2]} --build-arg VERSION=${tag_info[1]} -t ${tag_info[3]} -f ${tag_info[0]} .
echo "Pusing ${tag_info[3]} ..."
docker push ${tag_info[3]}
done