mirror of https://github.com/stretchr/testify.git
Check code is formatted in travis
parent
eb84487cae
commit
dd57c7b68a
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -n "$(gofmt -l .)" ]; then
|
||||||
|
echo "Go code is not formatted:"
|
||||||
|
gofmt -d .
|
||||||
|
exit 1
|
||||||
|
fi
|
|
@ -10,4 +10,5 @@ go:
|
||||||
- tip
|
- tip
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- ./.travis.gofmt.sh
|
||||||
- go test -v ./...
|
- go test -v ./...
|
||||||
|
|
Loading…
Reference in New Issue