2014-12-28 13:11:34 +01:00
|
|
|
language: go
|
|
|
|
|
2014-12-28 14:25:19 +01:00
|
|
|
go:
|
2017-02-18 14:29:33 +01:00
|
|
|
- 1.8
|
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-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
|
|
|
- libalut-dev
|
2017-08-16 17:46:21 +02:00
|
|
|
- libxcursor-dev
|
2016-09-04 10:10:56 +02:00
|
|
|
- libxrandr-dev
|
2017-08-16 17:46:21 +02:00
|
|
|
- libxxf86vm-dev
|
2016-01-19 15:21:00 +01:00
|
|
|
|
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:
|
2017-08-07 04:04:13 +02:00
|
|
|
- go get -t -v github.com/hajimehoshi/ebiten/...
|
2015-01-06 02:55:04 +01:00
|
|
|
- go get github.com/gopherjs/gopherjs
|
|
|
|
- go get github.com/gopherjs/webgl
|
2017-08-07 04:04:54 +02:00
|
|
|
- go get -tags example github.com/hajimehoshi/ebiten/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:
|
2017-08-07 04:04:54 +02:00
|
|
|
- go build -tags example -v github.com/hajimehoshi/ebiten/examples/...
|
2017-08-07 04:36:57 +02:00
|
|
|
- go test -v github.com/hajimehoshi/ebiten
|
|
|
|
- go test -v github.com/hajimehoshi/ebiten/internal/math
|
|
|
|
- go test -v github.com/hajimehoshi/ebiten/internal/restorable
|
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
|
|
|
# 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
|