Merge pull request #9 from simple-rules/ricl-travis

add gofmt to travis
pull/10/head
7z7 7 years ago committed by GitHub
commit 06ea70833a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      .travis.gofmt.sh
  2. 1
      .travis.yml

@ -0,0 +1,9 @@
#!/bin/bash
if [ -n "$(gofmt -l .)" ]; then
echo "Go code is not formatted:"
gofmt -d .
exit 1
else
echo "Go code is well formatted ;)"
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