Skip to content

Commit

Permalink
Run shellcheck only on Linux in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Jul 24, 2019
1 parent e2e9610 commit 07bbad5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,23 @@ services:
- docker

before_script:
- sudo apt-get install shellcheck
- |
if [[ "${TRAVIS_OS_NAME:-}" == 'linux' ]]; then
sudo apt-get install shellcheck
fi
script:
- |
if [[ "${TRAVIS_OS_NAME:-}" == 'linux' ]]; then
# @todo: Remove "|| true" once all coding standards issues are fixed.
./shellcheck.sh || true
fi
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
# @todo: Remove "||true" once all coding standards issues are fixed.
./shellcheck.sh || true
time bin/bats --tap test
fi
Expand Down

0 comments on commit 07bbad5

Please sign in to comment.