Skip to content

Commit

Permalink
fix: chain commands in .travis.yml
Browse files Browse the repository at this point in the history
This is instead of using `set -e`
  • Loading branch information
sublimino authored Jun 23, 2019
1 parent 2d035ab commit 927c494
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ services:

script:
- |
set -e
if [[ "${TRAVIS_OS_NAME:-}" == 'linux' && -n "${BASHVER}" ]]; then
docker build --build-arg bashver="${BASHVER}" --tag "bats/bats:bash-${BASHVER}" .
docker run -it "bash:${BASHVER}" --version
time docker run -it "bats/bats:bash-${BASHVER}" --tap /opt/bats/test
docker build --build-arg bashver="${BASHVER}" --tag "bats/bats:bash-${BASHVER}" . &&
docker run -it "bash:${BASHVER}" --version &&
time docker run -it "bats/bats:bash-${BASHVER}" --tap /opt/bats/test
else
time bin/bats --tap test
fi
Expand Down

0 comments on commit 927c494

Please sign in to comment.