Add go vet to .travis.yml

Updates #889
This commit is contained in:
Hajime Hoshi 2019-10-07 03:01:48 +09:00
parent 5b22a1218e
commit de7ae1aee8

View File

@ -62,11 +62,20 @@ before_script:
script:
- cd /tmp/work
# go vet
- go vet -tags example -v github.com/hajimehoshi/ebiten/...
# go build
- go build -tags example -v github.com/hajimehoshi/ebiten/...
- go test -v github.com/hajimehoshi/ebiten/...
- GOOS=js GOARCH=wasm go test -v github.com/hajimehoshi/ebiten/...
- GOOS=windows GOARCH=amd64 go build -tags example -v github.com/hajimehoshi/ebiten/...
- GOOS=windows GOARCH=386 go build -tags example -v github.com/hajimehoshi/ebiten/...
# go test
- go test -v github.com/hajimehoshi/ebiten/...
- GOOS=js GOARCH=wasm go test -v github.com/hajimehoshi/ebiten/...
# GopherJS
- GO111MODULE=off go1.12.10 run github.com/gopherjs/gopherjs build --tags example -v github.com/hajimehoshi/ebiten/examples/blocks
- GO111MODULE=off go1.12.10 run myitcv.io/cmd/gjbt github.com/hajimehoshi/ebiten # TODO: Test the subdirectories