forked from hajimehoshi/ebiten
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (42 loc) · 1.24 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
language: go
go:
- "1.10"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libasound2-dev
- libglew-dev # required by headless-gl.
- libgles2-mesa-dev
- libalut-dev
- libxcursor-dev
- libxi-dev
- libxinerama-dev
- libxrandr-dev
- libxxf86vm-dev
# gl module is not available (2016-05-18)
#
# before_install:
# - export NODE_PATH=$(npm config get prefix)/lib/node_modules
# - npm install --global gl
install:
- go get -t -v github.com/hajimehoshi/ebiten/...
- go get github.com/gopherjs/gopherjs
- go get github.com/gopherjs/webgl
- go get -tags example github.com/hajimehoshi/ebiten/examples/...
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3
script:
- test -z $(gofmt -s -l $GOPATH/src/github.com/hajimehoshi/ebiten)
- go build -tags example -v github.com/hajimehoshi/ebiten/examples/...
- go test -v github.com/hajimehoshi/ebiten/...
- gopherjs build --tags example -v github.com/hajimehoshi/ebiten/examples/blocks
# Looks like testing GL on node is hard.
# - gopherjs test -v github.com/hajimehoshi/ebiten github.com/hajimehoshi/ebiten/internal/graphics
notifications:
email:
recipients: