소스 검색

travis: Use latest shellcheck

Dylan Araps 7 년 전
부모
커밋
f7f47799ea
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      .travis.yml

+ 8 - 0
.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