From f7f47799ea93a0fcb24e2b2cd6f12bd7099b4b67 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 3 Jun 2018 11:11:26 +1000 Subject: [PATCH] travis: Use latest shellcheck --- .travis.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index 2e21c079..31e8b447 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,14 @@ before_install: - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install screenresolution; fi +install: + # Install a custom version of shellcheck instead of Travis CI's default + - scversion="latest" # or "v0.4.7", or "latest" + - wget "https://storage.googleapis.com/shellcheck/shellcheck-${scversion}.linux.x86_64.tar.xz" + - tar --xz -xvf "shellcheck-${scversion}.linux.x86_64.tar.xz" + - shellcheck() { "shellcheck-${scversion}/shellcheck" "$@"; } + - shellcheck --version + script: - time ./neofetch --travis -v - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then shellcheck neofetch; fi