From 2d035ab9232d0b782e534cc02e3cfd84aa5d6c79 Mon Sep 17 00:00:00 2001 From: Andrew Martin Date: Sun, 10 Feb 2019 16:48:29 +0000 Subject: [PATCH 1/2] test: add Bash 5 as test target --- .travis.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2007fb4a..89b0f7d3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,7 @@ env: - BASHVER=4.2 - BASHVER=4.3 - BASHVER=4.4 + - BASHVER=5 matrix: include: @@ -21,10 +22,11 @@ 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 + 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 else time bin/bats --tap test fi From 927c494d253cba9b485bf5529c2c7cc797b5c416 Mon Sep 17 00:00:00 2001 From: Andrew Martin Date: Sun, 23 Jun 2019 22:57:01 +0100 Subject: [PATCH 2/2] fix: chain commands in .travis.yml This is instead of using `set -e` --- .travis.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 89b0f7d3..bc98d1b4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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