Skip to content

Commit b26cdc6

Browse files
Check shell script format via shfmt on Travis CI
1 parent a6b57db commit b26cdc6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ jobs:
3737
- npm i -g echint
3838
script:
3939
- echint
40+
- stage: Static tests
41+
env:
42+
- task=shfmt
43+
services:
44+
- docker
45+
script:
46+
- docker run -it --rm -v "$(pwd)":/sh -w /sh peterdavehello/shfmt:2.5.0 -sr -i 2 -l -w -ci .
47+
- git diff --color
48+
- git diff --stat=220 --color --exit-code
4049

4150
# test all echo functions on difference shell on Linux
4251
- stage: Ubuntu runtime test

0 commit comments

Comments
 (0)