-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
80 lines (80 loc) · 4.61 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
language: go
go:
- 1.6
- 1.5
- 1.4
- 1.3
- 1.2
env: CHESSBASEURL="http://localhost:8082/"
addons:
mariadb: '5.5'
matrix:
allow_failures:
- go: 1.3
# include:
# - go: 1.6
# env: TESTUJEMY_MARIADB=10.1 CHESSBASEURL="http://localhost:8082/"
# addons:
# mariadb: '10.1'
before_install:
- mysqladmin variables | grep socket
- sudo mkdir /var/run/mysql
- sudo ln -s /var/run/mysqld/mysqld.sock /var/run/mysql/mysql.sock
- echo "" > coverage.txt
- go get github.com/onsi/gomega
- go get github.com/onsi/ginkgo
- go get golang.org/x/tools/cmd/cover
- go get github.com/go-sql-driver/mysql
- go get github.com/gorilla/mux
- go get github.com/dghubble/sling
- go get github.com/coreos/pkg/flagutil
install:
- ln -s $PWD $GOPATH/src/github.com/ArchieT/3manchess
- sh -c "mysql -e 'create database if not exists archiet;'; mysql archiet < $GOPATH/src/github.com/ArchieT/3manchess/server/mojsql/setup.sql"
- go install -v -race github.com/ArchieT/3manchess/movedet
- go install -v -race github.com/ArchieT/3manchess/player
- go install -v -race github.com/ArchieT/3manchess/interface/devengfmt
- go install -v -race github.com/ArchieT/3manchess/cmd/3manchess-devengfmt
- go install -v -race github.com/ArchieT/3manchess/cmd/3manchess-devengchan
- go install -v -race github.com/ArchieT/3manchess/ai/constsitval
- go install -v -race github.com/ArchieT/3manchess/ai/sitvalues
- go install -v -race github.com/ArchieT/3manchess/interface/gui
- go install -v -race github.com/ArchieT/3manchess/server
- go install -v -race github.com/ArchieT/3manchess/server/mojsql
- go install -v -race github.com/ArchieT/3manchess/multi
- go install -v -race github.com/ArchieT/3manchess/cmd/trychessserver
- go install -v -race github.com/ArchieT/3manchess/client
- go install -v -race github.com/ArchieT/3manchess/client/remote
- go install -v -race github.com/ArchieT/3manchess/cmd/chessrunbot
script:
- (while true; do echo "while - trychessserver starting again"; trychessserver -d archiet -u root; done) &
- go test github.com/ArchieT/3manchess/game -covermode=atomic -coverprofile=tmpgame.out
- cat tmpgame.out >> coverage.txt
- go test github.com/ArchieT/3manchess/movedet -covermode=atomic -coverprofile=tmpmovedet.out
- cat tmpmovedet.out >> coverage.txt
- go test -v github.com/ArchieT/3manchess/ai/constsitval -covermode=atomic -coverprofile=tmpconsv.out
- cat tmpconsv.out >> coverage.txt
- go test -v github.com/ArchieT/3manchess/server/mojsql -covermode=atomic -coverprofile=tmpmojsql.out
- cat tmpmojsql.out >> coverage.txt
- go test -v github.com/ArchieT/3manchess/client/remote -covermode=atomic -coverprofile=tmprem1.out
-timeout=1m || true
- cat tmprem1.out >> coverage.txt || true
- go test -v github.com/ArchieT/3manchess/client/remote -covermode=atomic -coverprofile=tmprem2.out
-timeout=1m || true
- cat tmprem2.out >> coverage.txt || true
after_success:
- bash <(curl -s https://codecov.io/bash)
notifications:
slack:
rooms:
- secure: KGLUOXcJny4R8yfUkX13A+xTjxuhOPtGYYsQm3am7Lr1UsAeYDKNmFt1H4ErPyIW8ZHB8TICGB2TnjqH3qRy4VsF+iblhWONJkeK8UCSkiltTj+px36YfdPUyWxHFKji/nt6uzKriUcbtKXKrLaSt31Wsm7IlwSFW7DkfHIlgJvTCrXR+FNQkVajQ4RjIvqD/9QevYaJo1+jn3N8y+NJWAshzw06pZl58xYu9oqksF/ft34iKvrhcpDpyLA09htWVJaNB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dmC/UEgyfS9ZqhrbXbxnwsTbPkKJza3K/OlXyfL9A/oN6wVbxhCaPw=
on_success: always
on_failure: always
on_start: always
email:
recipients:
on_pull_requests: true