add gofmt to travis

pull/9/head
Richard Liu 7 years ago
parent c48be9cdb1
commit 06a76b40b1
  1. 7
      .travis.gofmt.sh
  2. 1
      .travis.yml

@ -0,0 +1,7 @@
#!/bin/bash
if [ -n "$(gofmt -l .)" ]; then
echo "Go code is not formatted:"
gofmt -d .
exit 1
fi

@ -8,6 +8,7 @@ install:
- mv github.com/simple-rules/harmony-benchmark ./ - mv github.com/simple-rules/harmony-benchmark ./
- cd harmony-benchmark - cd harmony-benchmark
- go get github.com/go-stack/stack - go get github.com/go-stack/stack
- ./.travis.gofmt.sh
- go build - go build
notifications: notifications:
slack: slack:

Loading…
Cancel
Save