mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
.travis.yml: Skip gopherjs test
This commit is contained in:
parent
9a3c6bd8c4
commit
7f43ca2eb7
13
.travis.yml
13
.travis.yml
@ -8,14 +8,12 @@ addons:
|
||||
sources:
|
||||
- ubuntu-toolchain-r-test
|
||||
packages:
|
||||
- libglew-dev # required by node-gl.
|
||||
- libglew-dev # required by headless-gl.
|
||||
- libopenal-dev
|
||||
- libalut-dev
|
||||
- libxxf86vm-dev
|
||||
|
||||
before_install:
|
||||
- export DISPLAY=:99.0
|
||||
- sh -e /etc/init.d/xvfb start
|
||||
- export NODE_PATH=$(npm config get prefix)/lib/node_modules
|
||||
- npm install --global gl
|
||||
|
||||
@ -24,11 +22,18 @@ install:
|
||||
- go get github.com/gopherjs/gopherjs
|
||||
- go get github.com/gopherjs/webgl
|
||||
|
||||
before_script:
|
||||
- export DISPLAY=:99.0
|
||||
- sh -e /etc/init.d/xvfb start
|
||||
- sleep 3
|
||||
|
||||
script:
|
||||
- go test -v ./...
|
||||
- gopherjs test -v github.com/hajimehoshi/ebiten github.com/hajimehoshi/ebiten/internal/graphics
|
||||
- gopherjs build -v github.com/hajimehoshi/ebiten/example/blocks
|
||||
|
||||
# Looks like testing GL on node on Travis CI seems hard.
|
||||
# - gopherjs test -v github.com/hajimehoshi/ebiten github.com/hajimehoshi/ebiten/internal/graphics
|
||||
|
||||
notifications:
|
||||
email:
|
||||
recipients:
|
||||
|
@ -83,7 +83,11 @@ func NewContext() *Context {
|
||||
}
|
||||
} else {
|
||||
// Use headless-gl for testing.
|
||||
webglContext := js.Global.Call("require", "gl").Invoke(16, 16)
|
||||
options := map[string]bool{
|
||||
"alpha": true,
|
||||
"premultipliedAlpha": true,
|
||||
}
|
||||
webglContext := js.Global.Call("require", "gl").Invoke(16, 16, options)
|
||||
gl = &webgl.Context{Object: webglContext}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user