mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
indent YAML
22
TravisCI.md
22
TravisCI.md
@@ -20,12 +20,12 @@ sudo: false
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- debian-sid # Grab shellcheck from the Debian repo (o_O)
|
||||
- debian-sid # Grab shellcheck from the Debian repo (o_O)
|
||||
packages:
|
||||
- shellcheck
|
||||
- shellcheck
|
||||
|
||||
script:
|
||||
- bash -c 'shopt -s globstar; shellcheck **/*.{sh,bash}'
|
||||
- bash -c 'shopt -s globstar; shellcheck **/*.{sh,bash}'
|
||||
|
||||
matrix:
|
||||
fast_finish: true
|
||||
@@ -52,7 +52,7 @@ before_install:
|
||||
- docker pull koalaman/shellcheck
|
||||
|
||||
script:
|
||||
- docker run -v $(pwd):/scripts koalaman/shellcheck /scripts/yourscript.sh
|
||||
- docker run -v $(pwd):/scripts koalaman/shellcheck /scripts/yourscript.sh
|
||||
|
||||
matrix:
|
||||
fast_finish: true
|
||||
@@ -74,20 +74,20 @@ sudo: false
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- realpath # required by script
|
||||
- cabal-install
|
||||
- ghc
|
||||
- realpath # required by script
|
||||
- cabal-install
|
||||
- ghc
|
||||
|
||||
install:
|
||||
- ./"Build and Setup ShellCheck's Latest Release.bash" --without-root
|
||||
- PATH="${HOME}/.cabal/bin:${PATH}"
|
||||
- ./"Build and Setup ShellCheck's Latest Release.bash" --without-root
|
||||
- PATH="${HOME}/.cabal/bin:${PATH}"
|
||||
|
||||
before_cache:
|
||||
- rm $HOME/.cabal/logs/build.log
|
||||
- rm $HOME/.cabal/logs/build.log
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.cabal
|
||||
- $HOME/.cabal
|
||||
```
|
||||
|
||||
> Here's another Git submodule to check all Bash scripts in the repository excluding its submodules using ShellCheck:
|
||||
|
Reference in New Issue
Block a user