language: go go: - "1.12" addons: apt: sources: - ubuntu-toolchain-r-test packages: - libasound2-dev - libgl1-mesa-dev - libalut-dev - libxcursor-dev - libxi-dev - libxinerama-dev - libxrandr-dev - libxxf86vm-dev chrome: stable services: - xvfb 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 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 - GOOS=windows GOARCH=amd64 go build -tags example -v github.com/hajimehoshi/ebiten/examples/... - GOOS=windows GOARCH=386 go build -tags example -v github.com/hajimehoshi/ebiten/examples/... - CGO_ENABLED=0 go vet github.com/hajimehoshi/ebiten # This is necessary for the Go playground # - test -z $(gofmt -s -l $GOPATH/src/github.com/hajimehoshi/ebiten) notifications: email: recipients: - hajimehoshi@gmail.com