mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
Merge pull request #284 from pibigstar/master
feat(travis): exit ci when test failed
This commit is contained in:
@ -29,10 +29,10 @@ install:
|
||||
|
||||
before_script:
|
||||
- find . -name "*.go" | xargs gofmt -w
|
||||
- git diff --exit-code
|
||||
- git diff --name-only --exit-code || exit 1
|
||||
|
||||
script:
|
||||
- GOARCH=386 go test -v ./...
|
||||
- GOARCH=386 go test -v ./... || exit 1
|
||||
- GOARCH=amd64 go test -v ./... -race -coverprofile=coverage.txt -covermode=atomic
|
||||
|
||||
after_success:
|
||||
|
||||
Reference in New Issue
Block a user