From 4094274f65ae99c6e6c882cdee68f6efc3b9aec9 Mon Sep 17 00:00:00 2001 From: Miguel Angel Date: Tue, 13 Feb 2018 23:28:06 -0400 Subject: [PATCH] Updated TravisCI (markdown) --- TravisCI.md | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) 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 +```