2016-01-19 15:21:00 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
2017-07-11 17:56:19 +02:00
|
|
|
- libasound2-dev
|
2019-08-08 12:09:48 +02:00
|
|
|
- libgl1-mesa-dev
|
2016-01-19 15:21:00 +01:00
|
|
|
- libalut-dev
|
2017-08-16 17:46:21 +02:00
|
|
|
- libxcursor-dev
|
2017-08-16 17:56:12 +02:00
|
|
|
- libxi-dev
|
2017-08-16 17:51:13 +02:00
|
|
|
- libxinerama-dev
|
2016-09-04 10:10:56 +02:00
|
|
|
- libxrandr-dev
|
2017-08-16 17:46:21 +02:00
|
|
|
- libxxf86vm-dev
|
2018-05-21 18:47:21 +02:00
|
|
|
chrome: stable
|
2014-12-28 13:11:34 +01:00
|
|
|
|
2019-08-08 12:53:45 +02:00
|
|
|
services:
|
|
|
|
- xvfb
|
|
|
|
|
2015-01-06 02:55:04 +01:00
|
|
|
install:
|
2020-02-08 17:43:06 +01:00
|
|
|
# Install Go 1.13.7 manualy
|
2019-09-29 17:45:54 +02:00
|
|
|
# See https://travis-ci.community/t/goos-js-goarch-wasm-go-run-fails-panic-newosproc-not-implemented/1651
|
2020-02-08 17:43:06 +01:00
|
|
|
- wget -O go.tar.gz https://dl.google.com/go/go1.13.7.linux-amd64.tar.gz
|
2019-09-29 17:45:54 +02:00
|
|
|
- tar -C ~ -xzf go.tar.gz
|
|
|
|
- rm go.tar.gz
|
|
|
|
- export GOROOT=~/go
|
|
|
|
- export GOPATH=/home/travis/gopath
|
|
|
|
- export PATH=$GOROOT/bin:$PATH
|
|
|
|
- go version
|
|
|
|
- go env
|
|
|
|
|
2020-02-08 17:43:06 +01:00
|
|
|
# Install Go 1.12.16
|
|
|
|
- go get golang.org/dl/go1.12.16
|
|
|
|
- go1.12.16 download
|
2019-09-29 17:45:54 +02:00
|
|
|
|
2020-02-08 17:47:49 +01:00
|
|
|
# Install Go 1.14rc1
|
|
|
|
- go get golang.org/dl/go1.14rc1
|
|
|
|
- go1.14rc1 download
|
2020-01-07 18:04:08 +01:00
|
|
|
|
2019-09-29 17:45:54 +02:00
|
|
|
# Make the working directory
|
2018-08-26 19:24:41 +02:00
|
|
|
- mkdir /tmp/work
|
|
|
|
- cd /tmp/work
|
|
|
|
- go mod init example.com/m
|
2019-12-17 19:17:44 +01:00
|
|
|
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then go get github.com/hajimehoshi/ebiten@$TRAVIS_COMMIT; fi
|
|
|
|
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then go get github.com/hajimehoshi/ebiten; fi
|
2019-12-27 17:09:26 +01:00
|
|
|
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then wget -O ebiten.zip https://github.com/hajimehoshi/ebiten/archive/$TRAVIS_COMMIT.zip; fi
|
2019-12-17 19:17:44 +01:00
|
|
|
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then unzip ebiten.zip; fi
|
|
|
|
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then mv ./ebiten-$TRAVIS_COMMIT ebiten; fi
|
|
|
|
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then go mod edit -replace=github.com/hajimehoshi/ebiten=./ebiten; fi
|
2019-09-29 17:45:54 +02:00
|
|
|
|
|
|
|
# wasmbrowsertest
|
2020-02-08 17:47:49 +01:00
|
|
|
- GO111MODULE=off go1.14rc1 get github.com/agnivade/wasmbrowsertest
|
2019-09-29 17:12:48 +02:00
|
|
|
- mv $GOPATH/bin/wasmbrowsertest $GOPATH/bin/go_js_wasm_exec
|
2019-09-29 17:45:54 +02:00
|
|
|
|
|
|
|
# GopherJS
|
2020-02-08 17:43:06 +01:00
|
|
|
- GO111MODULE=off go1.12.16 get github.com/gopherjs/gopherjs
|
2019-12-17 19:17:44 +01:00
|
|
|
- mkdir -p $GOPATH/src/github.com/hajimehoshi
|
|
|
|
- cd $GOPATH/src/github.com/hajimehoshi
|
2019-12-27 17:09:26 +01:00
|
|
|
- wget -O ebiten.zip https://github.com/hajimehoshi/ebiten/archive/$TRAVIS_COMMIT.zip
|
2019-12-17 19:17:44 +01:00
|
|
|
- unzip ebiten.zip
|
|
|
|
- mv ./ebiten-$TRAVIS_COMMIT ebiten
|
|
|
|
- cd ./ebiten
|
|
|
|
- GO111MODULE=off go get -d -tags=example ./...
|
|
|
|
- cd /tmp/work
|
2019-09-29 17:45:54 +02:00
|
|
|
|
|
|
|
# gjbt
|
2020-02-08 17:43:06 +01:00
|
|
|
- GO111MODULE=off go1.12.16 get myitcv.io/cmd/gjbt
|
2019-09-29 17:45:54 +02:00
|
|
|
|
|
|
|
# Chrome
|
2018-05-21 18:47:21 +02:00
|
|
|
- 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
|
|
|
|
- curl -s https://chromedriver.storage.googleapis.com/2.38/chromedriver_linux64.zip > /tmp/chromedriver_linux64.zip
|
|
|
|
- unzip -d /tmp/chromedriver_linux64 /tmp/chromedriver_linux64.zip
|
|
|
|
- export PATH=/tmp/chromedriver_linux64:$PATH
|
2015-01-06 02:55:04 +01:00
|
|
|
|
2016-01-19 19:43:13 +01:00
|
|
|
before_script:
|
|
|
|
- export DISPLAY=:99.0
|
|
|
|
|
2015-01-06 02:55:04 +01:00
|
|
|
script:
|
2018-08-26 19:24:41 +02:00
|
|
|
- cd /tmp/work
|
2019-10-06 20:01:48 +02:00
|
|
|
|
|
|
|
# go vet
|
2019-12-17 19:17:44 +01:00
|
|
|
- go vet -tags=example -v github.com/hajimehoshi/ebiten/...
|
2019-10-06 20:01:48 +02:00
|
|
|
|
|
|
|
# go build
|
2019-12-17 19:17:44 +01:00
|
|
|
- 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/...
|
2019-10-06 20:01:48 +02:00
|
|
|
|
|
|
|
# go test
|
|
|
|
- go test -v github.com/hajimehoshi/ebiten/...
|
2020-02-08 17:47:49 +01:00
|
|
|
- GOOS=js GOARCH=wasm go1.14rc1 test -v github.com/hajimehoshi/ebiten/...
|
2019-10-06 20:01:48 +02:00
|
|
|
|
|
|
|
# GopherJS
|
2020-02-08 17:43:06 +01:00
|
|
|
- GO111MODULE=off go1.12.16 run github.com/gopherjs/gopherjs build --tags=example -v github.com/hajimehoshi/ebiten/examples/blocks
|
|
|
|
- GO111MODULE=off go1.12.16 run myitcv.io/cmd/gjbt github.com/hajimehoshi/ebiten # TODO: Test the subdirectories
|
2016-01-19 19:43:13 +01:00
|
|
|
|
2018-08-26 19:24:41 +02:00
|
|
|
# - test -z $(gofmt -s -l $GOPATH/src/github.com/hajimehoshi/ebiten)
|
|
|
|
|
2014-12-28 13:11:34 +01:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
recipients:
|
|
|
|
- hajimehoshi@gmail.com
|