mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated TravisCI (markdown)
33
TravisCI.md
33
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
|
||||
> 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
|
||||
```
|
||||
|
Reference in New Issue
Block a user