forked from percona/percona-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
85 lines (74 loc) · 2.4 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
81
82
83
84
85
language: go
go:
- 1.10.x
- 1.12.x
- 1.13.x
services:
- docker
env:
global:
- DOCKER_COMPOSE_VERSION: 1.8.0
- TEST_MONGODB_FLAVOR: mongo
- TEST_PSMDB_VERSION: 4.0
- TEST_MONGODB_ADMIN_USERNAME: admin
- TEST_MONGODB_ADMIN_PASSWORD: admin123456
- TEST_MONGODB_USERNAME: test
- TEST_MONGODB_PASSWORD: 123456
- TEST_MONGODB_STANDALONE_PORT: 27017
- TEST_MONGODB_MONGOS_PORT: 17000
- TEST_MONGODB_S1_RS: rs1
- TEST_MONGODB_S1_PRIMARY_PORT: 17001
- TEST_MONGODB_S1_SECONDARY1_PORT: 17002
- TEST_MONGODB_S1_SECONDARY2_PORT: 17003
- TEST_MONGODB_S2_RS: rs2
- TEST_MONGODB_S2_PRIMARY_PORT: 17004
- TEST_MONGODB_S2_SECONDARY1_PORT: 17005
- TEST_MONGODB_S2_SECONDARY2_PORT: 17006
- TEST_MONGODB_CONFIGSVR_RS: csReplSet
- TEST_MONGODB_CONFIGSVR1_PORT: 17007 ce
- TEST_MONGODB_CONFIGSVR2_PORT: 17008
- TEST_MONGODB_CONFIGSVR3_PORT: 17009
- TEST_MONGODB_S3_RS: rs3
- TEST_MONGODB_S3_PRIMARY_PORT: 17021
- TEST_MONGODB_S3_SECONDARY1_PORT: 17022
- TEST_MONGODB_S3_SECONDARY2_PORT: 17023
- MINIO_ENDPOINT: http://localhost:9000/
- MINIO_ACCESS_KEY_ID: example00000
- MINIO_SECRET_ACCESS_KEY: secret00000
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
# skip non-trunk PMM-XXXX branch builds, but still build pull requests
branches:
except:
- /^PMM\-\d{4}/
go_import_path: github.com/percona/percona-toolkit
before_install:
- sudo apt-get update
- sudo apt-get install -o Dpkg::Options::="--force-confold" --force-yes -y docker-ce
- docker-compose --version
install:
- go get -u github.com/golang/dep/cmd/dep
before_script:
# log versions
- docker --version
- docker-compose --version
# run docker containers
- docker-compose up -d init
# we need at least one document in test db
- dep ensure
script:
- go test -timeout 20m ./src/...
allow_failures:
- tip
notifications:
email: false
slack:
on_success: change
on_failure: change
rooms:
secure: E5ZRDFtbVmQCo2SLCdvecpaRIZPC35+0srkyA9jVq0BJpvVY6pm4OQceAugy/g5cd6c2reTN9oNSjNF62BKpoJxPuIuu8/JdlvUMMxgxnGkCC1R6hAddbapvIe4EXlybLPGy8kAG7OkYVpGHtWwN3U5MfF7/tGeqL2y8C3fCDZA=