travis.yml: Make script into individual lines

Setting -eu fucks up travis's scripts, so instead we should feed it everything
command-by-command so it can fail out using its own logic.
pull/21/head
Mike Lang 6 years ago committed by Christopher Usher
parent 4dc00052f6
commit 25185f8f1f

@ -6,14 +6,12 @@ services:
- docker
# what to actually run
script: |
set -eu
export PUSH=true # always push
script:
# always push
- export PUSH=true
# if this is a push to master build, also push latest
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
export PUSH=latest
fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then export PUSH=latest; fi
# log into quay.io so we can push
echo "$QUAY_PASSWORD" | docker login quay.io -u "$QUAY_USER" --password-stdin
- echo "$QUAY_PASSWORD" | docker login quay.io -u "$QUAY_USER" --password-stdin
# build and push all components
./build
- ./build

Loading…
Cancel
Save