Skip to content

Commit 832d6b2

Browse files
committed
Modified TravisCI script in order to get the latest Shellcheck
1 parent c2be6b9 commit 832d6b2

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.travis.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@ php:
77
- 7.0
88
- 5.6
99

10+
env:
11+
global:
12+
- PATH="${HOME}/bin:${PATH}"
13+
- SHELLCHECK_URL="https://s3.amazonaws.com/travis-blue-public/binaries/ubuntu/14.04/x86_64/shellcheck-0.4.5.tar.bz2"
14+
1015
before_install:
11-
before_install:
12-
- sudo apt-get -qq update
13-
- sudo apt-get install -y cabal-install
14-
- cabal update
15-
- git clone https://github.com/koalaman/shellcheck.git
16-
- cd shellcheck
17-
- cabal install
18-
- cd ..
19-
- export PATH="$HOME/.cabal/bin:$PATH"
16+
- if ! shellcheck --version &>/dev/null; then
17+
curl -sSL "https://s3.amazonaws.com/travis-blue-public/binaries/ubuntu/14.04/x86_64/shellcheck-0.4.5.tar.bz2"
18+
| tar --exclude 'SHA256SUMS' --strip-components=1 -C "${HOME}/bin" -xjf -;
19+
fi
20+
- shellcheck --version
2021
- gpg --keyserver hkp://keys.gnupg.net --recv-keys C4133165DF5EB4BAEABDADCACF1E7823C5339B59
2122

2223
script:

0 commit comments

Comments
 (0)