Browse Source

Add .travis.yml to verify shfmt is happy

Pin it to version 0.4.0 for now.
pull/374/head
Daniel Martí 8 years ago
parent
commit
b213f5db21
  1. 11
      .travis.yml

11
.travis.yml

@ -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…
Cancel
Save