Test Go 1.13 at TravisCI

This commit is contained in:
Hajime Hoshi 2019-09-22 22:59:41 +09:00
parent ea6a25f594
commit 175caa7319

View File

@ -1,7 +1,7 @@
language: go language: go
go: go:
- "1.12" - "1.13"
addons: addons:
apt: apt:
@ -22,16 +22,16 @@ services:
- xvfb - xvfb
install: install:
- go get golang.org/dl/go1.12.9
- go1.12.9 download
- mkdir /tmp/work - mkdir /tmp/work
- cd /tmp/work - cd /tmp/work
- go mod init example.com/m - go mod init example.com/m
- go get github.com/hajimehoshi/ebiten@$TRAVIS_BRANCH - go get github.com/hajimehoshi/ebiten@$TRAVIS_BRANCH
- go get github.com/gopherjs/gopherjs
- go get myitcv.io/cmd/gjbt
- # gopath-get for the current GopherJS and gjbt. - # gopath-get for the current GopherJS and gjbt.
- GO111MODULE=off go get -tags example github.com/hajimehoshi/ebiten/... - GO111MODULE=off go get -tags example github.com/hajimehoshi/ebiten/...
- GO111MODULE=off go get github.com/gopherjs/gopherjs - GO111MODULE=off go1.12.9 get github.com/gopherjs/gopherjs
- GO111MODULE=off go get github.com/gopherjs/gopherwasm/js - GO111MODULE=off go1.12.9 get myitcv.io/cmd/gjbt
- mkdir /tmp/google-chrome-bin - mkdir /tmp/google-chrome-bin
- ln -s /usr/bin/google-chrome-stable /tmp/google-chrome-bin/google-chrome - ln -s /usr/bin/google-chrome-stable /tmp/google-chrome-bin/google-chrome
- export PATH=/tmp/google-chrome-bin:$PATH - export PATH=/tmp/google-chrome-bin:$PATH
@ -46,10 +46,10 @@ script:
- cd /tmp/work - cd /tmp/work
- go build -tags example -v github.com/hajimehoshi/ebiten/... - go build -tags example -v github.com/hajimehoshi/ebiten/...
- go test -v github.com/hajimehoshi/ebiten/... - go test -v github.com/hajimehoshi/ebiten/...
- gopherjs build --tags example -v github.com/hajimehoshi/ebiten/examples/blocks
- gjbt github.com/hajimehoshi/ebiten # TODO: Test the subdirectories
- GOOS=windows GOARCH=amd64 go build -tags example -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/... - GOOS=windows GOARCH=386 go build -tags example -v github.com/hajimehoshi/ebiten/...
- GO111MODULE=off go1.12.9 run github.com/gopherjs/gopherjs build --tags example -v github.com/hajimehoshi/ebiten/examples/blocks
- GO111MODULE=off go1.12.9 run myitcv.io/cmd/gjbt github.com/hajimehoshi/ebiten # TODO: Test the subdirectories
# - test -z $(gofmt -s -l $GOPATH/src/github.com/hajimehoshi/ebiten) # - test -z $(gofmt -s -l $GOPATH/src/github.com/hajimehoshi/ebiten)