Use build matrix to speed up build and push processes

This commit is contained in:
butomo1989 2017-04-26 11:42:40 +02:00
parent b785d70389
commit 666489987b
2 changed files with 10 additions and 2 deletions

View file

@ -10,6 +10,14 @@ services:
install: "pip install -r requirements.txt" install: "pip install -r requirements.txt"
env:
matrix:
- ANDROID_VERSION=5.0.1
- ANDROID_VERSION=5.1.1
- ANDROID_VERSION=6.0
- ANDROID_VERSION=7.0
- ANDROID_VERSION=7.1.1
script: bash travis.sh script: bash travis.sh
after_success: after_success:

View file

@ -7,8 +7,8 @@ if [ -z "$TRAVIS_TAG" ]; then
else else
echo "Log in to docker hub" echo "Log in to docker hub"
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
echo "RUN UNIT TEST, BUILD DOCKER IMAGES AND PUSH THOSE TO DOCKER HUB" echo "[Version: $ANDROID_VERSION] RUN UNIT TEST, BUILD DOCKER IMAGES AND PUSH THOSE TO DOCKER HUB"
bash release.sh all all all $TRAVIS_TAG bash release.sh all $ANDROID_VERSION all $TRAVIS_TAG
echo "Log out of docker hub" echo "Log out of docker hub"
docker logout docker logout
fi fi