From 666489987b82debd743486d73c0b03ace65d935c Mon Sep 17 00:00:00 2001 From: butomo1989 Date: Wed, 26 Apr 2017 11:42:40 +0200 Subject: [PATCH] Use build matrix to speed up build and push processes --- .travis.yml | 8 ++++++++ travis.sh | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 947699d..540b19f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,14 @@ services: 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 after_success: diff --git a/travis.sh b/travis.sh index 3ed730a..313ca32 100755 --- a/travis.sh +++ b/travis.sh @@ -7,8 +7,8 @@ if [ -z "$TRAVIS_TAG" ]; then else echo "Log in to docker hub" docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" - echo "RUN UNIT TEST, BUILD DOCKER IMAGES AND PUSH THOSE TO DOCKER HUB" - bash release.sh all all all $TRAVIS_TAG + echo "[Version: $ANDROID_VERSION] RUN UNIT TEST, BUILD DOCKER IMAGES AND PUSH THOSE TO DOCKER HUB" + bash release.sh all $ANDROID_VERSION all $TRAVIS_TAG echo "Log out of docker hub" docker logout fi