mirror of
https://github.com/izzy2lost/docker-android.git
synced 2026-06-19 01:16:28 -07:00
Use build matrix to speed up build and push processes
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user