Add shfmt check on Travis CI

This commit is contained in:
Peter Dave Hello 2018-05-14 19:25:46 +08:00
parent 43845dca24
commit 0d0dcfd379
1 changed files with 8 additions and 0 deletions

View File

@ -32,6 +32,14 @@ jobs:
doctoc --title='## Table of Contents' --github README.md &&
diff -q README.md README.md.tmp
- stage: Test
env:
- TEST: shfmt check
script:
- docker run -it --rm -v "$(pwd)":/sh -w /sh jamesmstone/shfmt -i 2 -l -w -ci .
- git diff --color
- git diff --stat=220 --color --exit-code
- stage: Test
env:
- TEST: Shell Check