Skip to content

Commit

Permalink
test: add Bash 5 as test target (sstephenson#181)
Browse files Browse the repository at this point in the history
test: add Bash 5 as test target
  • Loading branch information
sublimino authored Jun 28, 2019
2 parents 8789f91 + 927c494 commit 7f8b079
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ env:
- BASHVER=4.2
- BASHVER=4.3
- BASHVER=4.4
- BASHVER=5

matrix:
include:
Expand All @@ -21,10 +22,10 @@ services:

script:
- |
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
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
else
time bin/bats --tap test
fi
Expand Down

0 comments on commit 7f8b079

Please sign in to comment.