From cb9dd1dd24804865ff6698c98b810a449c4f102e Mon Sep 17 00:00:00 2001 From: Mike Bland Date: Tue, 3 Jul 2018 09:36:24 -0400 Subject: [PATCH] travis: Enable build with default Linux image Bash Since I'm paranoid that we might need to resolve an issue specific to 4.3.11(1)-release (or whatever the Bash version is in the stock Travis Linux image). Also, I didn't want to hold up #116 any longer with more tiny requests. --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 339e2892..78216cfa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ os: - linux env: + - BASHVER= - BASHVER=3.2 - BASHVER=4.0 - BASHVER=4.1 @@ -20,7 +21,7 @@ services: script: - | - if [[ "$TRAVIS_OS_NAME" == 'linux' ]]; then + 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