Add .travis.yml to verify shfmt is happy
Pin it to version 0.4.0 for now.
This commit is contained in:
parent
f2e20fe098
commit
b213f5db21
11
.travis.yml
Normal file
11
.travis.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
language: bash
|
||||||
|
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
- SHFMT_URL=https://github.com/mvdan/sh/releases/download/v0.4.0/shfmt_v0.4.0_linux_amd64
|
||||||
|
|
||||||
|
script:
|
||||||
|
- curl -sSL $SHFMT_URL -o ~/shfmt
|
||||||
|
- chmod +x ~/shfmt
|
||||||
|
- ~/shfmt -l -w -i 2 .
|
||||||
|
- git diff --exit-code || echo "Run shfmt to fix the formatting issues"
|
||||||
Loading…
Reference in New Issue
Block a user