godog/.travis.yml

28 строки
650 Б
YAML

language: go
go:
- 1.3
- 1.4
- release
- tip
script:
# linters and vet
- go get golang.org/x/tools/cmd/vet
- go get github.com/golang/lint/golint
# pull all external dependencies
- go get github.com/cucumber/gherkin-go
- go get golang.org/x/tools/imports
- go get github.com/shiena/ansicolor
# run standard go tests
- go test -v ./...
- go test -race ./...
# run features
- go run cmd/godog/main.go -f progress
# code correctness
- sh -c 'RES="$(go fmt ./...)"; if [ ! -z "$RES" ]; then echo $RES; exit 1; fi'
- sh -c 'RES="$(golint ./...)"; if [ ! -z "$RES" ]; then echo $RES; exit 1; fi'
- go vet ./...