This repository has been archived by the owner on Jun 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (54 loc) · 1.65 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
51
52
53
54
55
56
57
58
59
60
61
62
language: go
go:
- "1.12.5"
# https://restic.net/blog/2018-09-02/travis-build-cache
cache:
directories:
- $HOME/.cache/go-build
- $HOME/gopath/pkg/mod
dist: xenial
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
services:
- xvfb
install:
- export GO111MODULE=on
- go mod download
- go get
# Underlying framework used
#- go get -t -v github.com/hajimehoshi/ebiten/...
# Debug Mode: Live file reloading (watch files for changes)
#- go get -t -v github.com/fsnotify/fsnotify/...
before_script:
- export DISPLAY=:99.0
script:
- go install -v -tags debug ./gml
- go install -v -tags headless ./gml
- go install -v -tags "debug headless" ./gml
- go install -v ./gml
- go install -v ./cmd/gmlgo
- gmlgo generate -v ./example/...
- go build -tags debug -v ./example/...
- go build -tags headless -v ./example/...
- go build -tags "debug headless" -v ./example/...
- go build -v ./example/...
- go test -v ./gml/...
- go test -tags debug -v ./gml/...
- go test -tags headless -v ./gml/...
- go test -tags "debug headless" -v ./gml/...
- go test -v ./cmd/...
- go test -tags "debug headless" -coverprofile="coverage_spaceship.out" -coverpkg=$(go list ./example/spaceship/game) ./example/spaceship/test
- go test -tags "debug headless" -coverprofile="coverage_worm.out" -coverpkg=$(go list ./example/worm/game) ./example/worm/test
- gmlgo publish -v ./example/spaceship