commit
fcaf58b591
3 changed files with 9 additions and 1 deletions
7
.travis.gofmt.sh
Executable file
7
.travis.gofmt.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ -n "$(gofmt -l .)" ]; then
|
||||
echo "Go code is not formatted:"
|
||||
gofmt -d .
|
||||
exit 1
|
||||
fi
|
|
@ -15,6 +15,7 @@ before_script:
|
|||
- source .travis.fix-fork.sh
|
||||
|
||||
script:
|
||||
- ./.travis.gofmt.sh
|
||||
- go test ./...
|
||||
- mkdir stage
|
||||
- cd stage
|
||||
|
|
Loading…
Reference in a new issue