diff --git a/.travis.yml b/.travis.yml index c614574d..63c57db4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,2 +1,10 @@ language: bash -script: shellcheck -e 2034 */*/build */*/post-install + +install: + # Install a custom version of shellcheck instead of Travis CI's default + - scversion=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" "$@"; } + +script: shellcheck -e 2034 */*/build */*/post-install