mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +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:
|
sources:
|
||||||
- ubuntu-toolchain-r-test
|
- ubuntu-toolchain-r-test
|
||||||
packages:
|
packages:
|
||||||
- libglew-dev # required by node-gl.
|
- libglew-dev # required by headless-gl.
|
||||||
- libopenal-dev
|
- libopenal-dev
|
||||||
- libalut-dev
|
- libalut-dev
|
||||||
- libxxf86vm-dev
|
- libxxf86vm-dev
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- export DISPLAY=:99.0
|
|
||||||
- sh -e /etc/init.d/xvfb start
|
|
||||||
- export NODE_PATH=$(npm config get prefix)/lib/node_modules
|
- export NODE_PATH=$(npm config get prefix)/lib/node_modules
|
||||||
- npm install --global gl
|
- npm install --global gl
|
||||||
|
|
||||||
@ -24,11 +22,18 @@ install:
|
|||||||
- go get github.com/gopherjs/gopherjs
|
- go get github.com/gopherjs/gopherjs
|
||||||
- go get github.com/gopherjs/webgl
|
- go get github.com/gopherjs/webgl
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- export DISPLAY=:99.0
|
||||||
|
- sh -e /etc/init.d/xvfb start
|
||||||
|
- sleep 3
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- go test -v ./...
|
- 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
|
- 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:
|
notifications:
|
||||||
email:
|
email:
|
||||||
recipients:
|
recipients:
|
||||||
|
@ -83,7 +83,11 @@ func NewContext() *Context {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Use headless-gl for testing.
|
// 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}
|
gl = &webgl.Context{Object: webglContext}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user