mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
57 lines
1.6 KiB
YAML
57 lines
1.6 KiB
YAML
language: go
|
|
|
|
go:
|
|
- "1.11"
|
|
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
packages:
|
|
- libasound2-dev
|
|
- libgles2-mesa-dev
|
|
- libalut-dev
|
|
- libxcursor-dev
|
|
- libxi-dev
|
|
- libxinerama-dev
|
|
- libxrandr-dev
|
|
- libxxf86vm-dev
|
|
chrome: stable
|
|
|
|
install:
|
|
- mkdir /tmp/work
|
|
- cd /tmp/work
|
|
- go mod init example.com/m
|
|
- go get github.com/hajimehoshi/ebiten@$TRAVIS_BRANCH
|
|
- go get github.com/gopherjs/gopherjs
|
|
- go get myitcv.io/cmd/gjbt
|
|
- # gopath-get for the current GopherJS and gjbt.
|
|
- GO111MODULE=off go get -tags example github.com/hajimehoshi/ebiten/...
|
|
- GO111MODULE=off go get github.com/gopherjs/gopherjs
|
|
- GO111MODULE=off go get github.com/gopherjs/gopherwasm/js
|
|
- mkdir /tmp/google-chrome-bin
|
|
- ln -s /usr/bin/google-chrome-stable /tmp/google-chrome-bin/google-chrome
|
|
- export PATH=/tmp/google-chrome-bin:$PATH
|
|
- curl -s https://chromedriver.storage.googleapis.com/2.38/chromedriver_linux64.zip > /tmp/chromedriver_linux64.zip
|
|
- unzip -d /tmp/chromedriver_linux64 /tmp/chromedriver_linux64.zip
|
|
- export PATH=/tmp/chromedriver_linux64:$PATH
|
|
|
|
before_script:
|
|
- export DISPLAY=:99.0
|
|
- sh -e /etc/init.d/xvfb start
|
|
- sleep 3
|
|
|
|
script:
|
|
- cd /tmp/work
|
|
- 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
|
|
- gjbt github.com/hajimehoshi/ebiten # TODO: Test the subdirectories
|
|
|
|
# - test -z $(gofmt -s -l $GOPATH/src/github.com/hajimehoshi/ebiten)
|
|
|
|
notifications:
|
|
email:
|
|
recipients:
|
|
- hajimehoshi@gmail.com
|