forked from percona/percona-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (40 loc) · 1.06 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
language: go
go:
- 1.9.x
services:
- docker
env:
matrix:
- MONGODB_IMAGE=mongo:3.0
- MONGODB_IMAGE=mongo:3.2
- MONGODB_IMAGE=mongo:3.4
- MONGODB_IMAGE=percona/percona-server-mongodb:3.0
- MONGODB_IMAGE=percona/percona-server-mongodb:3.2
- MONGODB_IMAGE=percona/percona-server-mongodb:3.4
matrix:
include:
- go: 1.8.x
env:
- go: tip
env:
install:
- go get -u github.com/Masterminds/glide
- glide install -v
before_script:
# run docker containers
- docker-compose up -d
# log versions
- docker --version
- docker-compose --version
- docker-compose exec mongo mongo --version
# we need at least one document in test db
- docker-compose exec mongo mongo --eval 'db.init.insert({})'
script:
- go test -timeout 1m $(glide nv)
notifications:
email: false
slack:
on_success: change
on_failure: change
rooms:
secure: E5ZRDFtbVmQCo2SLCdvecpaRIZPC35+0srkyA9jVq0BJpvVY6pm4OQceAugy/g5cd6c2reTN9oNSjNF62BKpoJxPuIuu8/JdlvUMMxgxnGkCC1R6hAddbapvIe4EXlybLPGy8kAG7OkYVpGHtWwN3U5MfF7/tGeqL2y8C3fCDZA=