test: Update Go version in TravisCI

This commit is contained in:
Hajime Hoshi 2019-12-18 12:52:13 +09:00
parent 9ead4c24f1
commit 216eacb0ba

View File

@ -17,9 +17,9 @@ services:
- xvfb - xvfb
install: install:
# Install Go 1.13.3 manualy # Install Go 1.13.5 manualy
# See https://travis-ci.community/t/goos-js-goarch-wasm-go-run-fails-panic-newosproc-not-implemented/1651 # See https://travis-ci.community/t/goos-js-goarch-wasm-go-run-fails-panic-newosproc-not-implemented/1651
- wget -O go.tar.gz https://dl.google.com/go/go1.13.3.linux-amd64.tar.gz - wget -O go.tar.gz https://dl.google.com/go/go1.13.5.linux-amd64.tar.gz
- tar -C ~ -xzf go.tar.gz - tar -C ~ -xzf go.tar.gz
- rm go.tar.gz - rm go.tar.gz
- export GOROOT=~/go - export GOROOT=~/go
@ -28,9 +28,9 @@ install:
- go version - go version
- go env - go env
# Install Go 1.12.12 # Install Go 1.12.14
- go get golang.org/dl/go1.12.12 - go get golang.org/dl/go1.12.14
- go1.12.12 download - go1.12.14 download
# Make the working directory # Make the working directory
- mkdir /tmp/work - mkdir /tmp/work
@ -48,7 +48,7 @@ install:
- mv $GOPATH/bin/wasmbrowsertest $GOPATH/bin/go_js_wasm_exec - mv $GOPATH/bin/wasmbrowsertest $GOPATH/bin/go_js_wasm_exec
# GopherJS # GopherJS
- GO111MODULE=off go1.12.12 get github.com/gopherjs/gopherjs - GO111MODULE=off go1.12.14 get github.com/gopherjs/gopherjs
- mkdir -p $GOPATH/src/github.com/hajimehoshi - mkdir -p $GOPATH/src/github.com/hajimehoshi
- cd $GOPATH/src/github.com/hajimehoshi - cd $GOPATH/src/github.com/hajimehoshi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then curl -L -o ebiten.zip https://github.com/hajimehoshi/ebiten/archive/$TRAVIS_COMMIT.zip; fi - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then curl -L -o ebiten.zip https://github.com/hajimehoshi/ebiten/archive/$TRAVIS_COMMIT.zip; fi
@ -60,7 +60,7 @@ install:
- cd /tmp/work - cd /tmp/work
# gjbt # gjbt
- GO111MODULE=off go1.12.12 get myitcv.io/cmd/gjbt - GO111MODULE=off go1.12.14 get myitcv.io/cmd/gjbt
# Chrome # Chrome
- mkdir /tmp/google-chrome-bin - mkdir /tmp/google-chrome-bin
@ -89,8 +89,8 @@ script:
- GOOS=js GOARCH=wasm go test -v github.com/hajimehoshi/ebiten/... - GOOS=js GOARCH=wasm go test -v github.com/hajimehoshi/ebiten/...
# GopherJS # GopherJS
- GO111MODULE=off go1.12.12 run github.com/gopherjs/gopherjs build --tags=example -v github.com/hajimehoshi/ebiten/examples/blocks - GO111MODULE=off go1.12.14 run github.com/gopherjs/gopherjs build --tags=example -v github.com/hajimehoshi/ebiten/examples/blocks
- GO111MODULE=off go1.12.12 run myitcv.io/cmd/gjbt github.com/hajimehoshi/ebiten # TODO: Test the subdirectories - GO111MODULE=off go1.12.14 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)