2014-12-28 13:11:34 +01:00
|
|
|
language: go
|
|
|
|
|
2014-12-28 14:25:19 +01:00
|
|
|
go:
|
2016-08-22 17:21:21 +02:00
|
|
|
- 1.7
|
2014-12-28 13:20:56 +01:00
|
|
|
|
2016-01-19 15:21:00 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
2016-01-19 19:43:13 +01:00
|
|
|
- libglew-dev # required by headless-gl.
|
2016-02-19 17:59:22 +01:00
|
|
|
- libgles2-mesa-dev
|
2016-01-19 15:21:00 +01:00
|
|
|
- libopenal-dev
|
|
|
|
- libalut-dev
|
|
|
|
- libxxf86vm-dev
|
|
|
|
|
2016-05-18 05:05:14 +02:00
|
|
|
# gl module is not available (2016-05-18)
|
|
|
|
#
|
|
|
|
# before_install:
|
|
|
|
# - export NODE_PATH=$(npm config get prefix)/lib/node_modules
|
|
|
|
# - npm install --global gl
|
2014-12-28 13:11:34 +01:00
|
|
|
|
2015-01-06 02:55:04 +01:00
|
|
|
install:
|
|
|
|
- go get -t -v ./...
|
|
|
|
- go get github.com/gopherjs/gopherjs
|
|
|
|
- go get github.com/gopherjs/webgl
|
2016-08-25 18:31:38 +02:00
|
|
|
- go get -tags example ./examples/...
|
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:
|
2016-08-25 17:40:39 +02:00
|
|
|
- go build -tags example -v ./...
|
2016-08-25 18:21:01 +02:00
|
|
|
- gopherjs build --tags example -v github.com/hajimehoshi/ebiten/examples/blocks
|
2015-01-06 02:55:04 +01:00
|
|
|
|
2016-02-06 08:47:25 +01:00
|
|
|
# Give up testing on Travis CI because of X error
|
|
|
|
# https://travis-ci.org/hajimehoshi/ebiten/jobs/107404013
|
|
|
|
# - go test -v ./...
|
|
|
|
|
|
|
|
# Looks like testing GL on node is hard.
|
2016-01-19 19:43:13 +01:00
|
|
|
# - gopherjs test -v github.com/hajimehoshi/ebiten github.com/hajimehoshi/ebiten/internal/graphics
|
|
|
|
|
2014-12-28 13:11:34 +01:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
recipients:
|
|
|
|
- hajimehoshi@gmail.com
|