diff --git a/.travis.yml b/.travis.yml index e6fa88c3e..032e57fe2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: go go: - - "1.12" + - "1.13" addons: apt: @@ -22,16 +22,16 @@ services: - xvfb install: + - go get golang.org/dl/go1.12.9 + - go1.12.9 download - mkdir /tmp/work - cd /tmp/work - go mod init example.com/m - 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. - GO111MODULE=off go get -tags example github.com/hajimehoshi/ebiten/... - - GO111MODULE=off go get github.com/gopherjs/gopherjs - - GO111MODULE=off go get github.com/gopherjs/gopherwasm/js + - GO111MODULE=off go1.12.9 get github.com/gopherjs/gopherjs + - GO111MODULE=off go1.12.9 get myitcv.io/cmd/gjbt - mkdir /tmp/google-chrome-bin - ln -s /usr/bin/google-chrome-stable /tmp/google-chrome-bin/google-chrome - export PATH=/tmp/google-chrome-bin:$PATH @@ -46,10 +46,10 @@ script: - cd /tmp/work - go build -tags example -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=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)