mirror of
https://github.com/stretchr/testify.git
synced 2025-05-31 11:42:44 +00:00
Travis check go generate has been run
This commit is contained in:
parent
345898142b
commit
e179a18f6c
8
.travis.gogenerate.sh
Executable file
8
.travis.gogenerate.sh
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
go generate
|
||||||
|
if [ -n "$(git diff)" ]; then
|
||||||
|
echo "Go generate had not been run"
|
||||||
|
git diff
|
||||||
|
exit 1
|
||||||
|
fi
|
@ -10,6 +10,7 @@ go:
|
|||||||
- tip
|
- tip
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- ./.travis.gogenerate.sh
|
||||||
- ./.travis.gofmt.sh
|
- ./.travis.gofmt.sh
|
||||||
- ./.travis.govet.sh
|
- ./.travis.govet.sh
|
||||||
- go test -v ./...
|
- go test -v ./...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user