2014-12-28 13:11:34 +01:00
|
|
|
language: go
|
|
|
|
|
2014-12-28 14:25:19 +01:00
|
|
|
go:
|
2018-08-26 12:41:27 +02:00
|
|
|
- "1.11"
|
2014-12-28 13:20:56 +01:00
|
|
|
|
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
|
2016-02-19 17:59:22 +01:00
|
|
|
- libgles2-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
|
|
|
|
2015-01-06 02:55:04 +01:00
|
|
|
install:
|
2018-08-26 19:24:41 +02:00
|
|
|
- mkdir /tmp/work
|
|
|
|
- cd /tmp/work
|
|
|
|
- go mod init example.com/m
|
2018-12-08 19:34:51 +01:00
|
|
|
- go get github.com/hajimehoshi/ebiten@$TRAVIS_BRANCH
|
2018-06-24 13:35:29 +02:00
|
|
|
- go get github.com/gopherjs/gopherjs
|
2018-07-18 04:01:48 +02:00
|
|
|
- go get myitcv.io/cmd/gjbt
|
2018-08-26 19:24:41 +02:00
|
|
|
- # 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
|
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
|
|
|
|
- sh -e /etc/init.d/xvfb start
|
|
|
|
- sleep 3
|
|
|
|
|
2015-01-06 02:55:04 +01:00
|
|
|
script:
|
2018-08-26 19:24:41 +02:00
|
|
|
- cd /tmp/work
|
2017-08-07 04:04:54 +02:00
|
|
|
- go build -tags example -v github.com/hajimehoshi/ebiten/examples/...
|
2018-04-05 20:40:06 +02:00
|
|
|
- go test -v github.com/hajimehoshi/ebiten/...
|
2017-12-31 09:19:09 +01:00
|
|
|
- gopherjs build --tags example -v github.com/hajimehoshi/ebiten/examples/blocks
|
2018-05-22 04:15:07 +02:00
|
|
|
- gjbt github.com/hajimehoshi/ebiten # TODO: Test the subdirectories
|
2019-01-20 09:34:41 +01:00
|
|
|
- GOOS=windows GOARCH=amd64 go build -tags example -v github.com/hajimehoshi/ebiten/examples/...
|
|
|
|
- GOOS=windows GOARCH=386 go build -tags example -v github.com/hajimehoshi/ebiten/examples/...
|
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
|