travis: Model via stages
This avoids building the docker images for each Python version test. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
parent
49cb9b7a7b
commit
c329e850d4
@ -21,10 +21,14 @@ install:
|
|||||||
script:
|
script:
|
||||||
- scripts/checkcode.sh .
|
- scripts/checkcode.sh .
|
||||||
- pytest
|
- pytest
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
include:
|
||||||
|
- stage: docker
|
||||||
|
python: "3.6"
|
||||||
|
script:
|
||||||
- docker build -t kasproject/kas .
|
- docker build -t kasproject/kas .
|
||||||
- docker build -t kasproject/kas-isar -f Dockerfile.isar .
|
- docker build -t kasproject/kas-isar -f Dockerfile.isar .
|
||||||
|
|
||||||
after_success:
|
|
||||||
- if [ "$TRAVIS_BRANCH" == "master" ] || [ "$TRAVIS_BRANCH" == "next" ]; then
|
- if [ "$TRAVIS_BRANCH" == "master" ] || [ "$TRAVIS_BRANCH" == "next" ]; then
|
||||||
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
|
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
|
||||||
for IMAGE in kasproject/kas kasproject/kas-isar; do
|
for IMAGE in kasproject/kas kasproject/kas-isar; do
|
||||||
|
Loading…
Reference in New Issue
Block a user