diff --git a/TravisCI.md b/TravisCI.md index 136a316..6871b22 100644 --- a/TravisCI.md +++ b/TravisCI.md @@ -82,4 +82,35 @@ cache: ``` > Here's another Git submodule to check all Bash scripts in the repository excluding its submodules using ShellCheck: -> https://github.com/Lin-Buo-Ren/GNU-Bash-Automatic-Checking-Program-for-Git-Projects \ No newline at end of file +> https://github.com/Lin-Buo-Ren/GNU-Bash-Automatic-Checking-Program-for-Git-Projects + +*** + +contributor ntrrg says: + +> Using the binary (Linux x64) is pretty straightforward + +```yaml +language: bash +before_install: + - wget -c https://goo.gl/ZzKHFv -O - | tar -xvJ -C /tmp/ + - PATH="/tmp/shellcheck-latest:$PATH" +script: shellcheck **/*.sh +``` + +> Makefiles can easily integrate it + +`Makefile`: + +```Makefile +``` + +`.travis.yml`: + +```yaml +language: bash +before_install: + - wget -c https://goo.gl/ZzKHFv -O - | tar -xvJ -C /tmp/ + - PATH="/tmp/shellcheck-latest:$PATH" +script: shellcheck **/*.sh +```