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