Use build matrix to speed up build and push processes
This commit is contained in:
parent
b785d70389
commit
666489987b
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue