Use Go 1.14 for Wasm

Go 1.13 has memory issue on Wasm (golang/go#35111). Use Go 1.14
instead.
This commit is contained in:
Hajime Hoshi 2020-01-08 02:04:08 +09:00
parent 90ccd4c440
commit 7f4a82ddf0

View File

@ -32,6 +32,10 @@ install:
- go get golang.org/dl/go1.12.14 - go get golang.org/dl/go1.12.14
- go1.12.14 download - go1.12.14 download
# Install Go 1.14 beta1
- go get golang.org/dl/go1.14beta1
- go1.14beta1 download
# Make the working directory # Make the working directory
- mkdir /tmp/work - mkdir /tmp/work
- cd /tmp/work - cd /tmp/work
@ -44,7 +48,7 @@ install:
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then go mod edit -replace=github.com/hajimehoshi/ebiten=./ebiten; fi - if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then go mod edit -replace=github.com/hajimehoshi/ebiten=./ebiten; fi
# wasmbrowsertest # wasmbrowsertest
- GO111MODULE=off go get github.com/agnivade/wasmbrowsertest - GO111MODULE=off go1.14beta1 get github.com/agnivade/wasmbrowsertest
- mv $GOPATH/bin/wasmbrowsertest $GOPATH/bin/go_js_wasm_exec - mv $GOPATH/bin/wasmbrowsertest $GOPATH/bin/go_js_wasm_exec
# GopherJS # GopherJS
@ -85,7 +89,7 @@ script:
# go test # go test
- go test -v github.com/hajimehoshi/ebiten/... - go test -v github.com/hajimehoshi/ebiten/...
- GOOS=js GOARCH=wasm go test -v github.com/hajimehoshi/ebiten/... - GOOS=js GOARCH=wasm go1.14beta1 test -v github.com/hajimehoshi/ebiten/...
# GopherJS # GopherJS
- GO111MODULE=off go1.12.14 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