forked from percona/qan-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
85 lines (76 loc) · 3.16 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
dist: trusty
sudo: required
language: go
go:
- 1.10.x
services:
- docker
env:
global:
- MYSQL_USER="root"
- MYSQL_HOST="127.0.0.1"
- MYSQL_PORT="3406"
- PCT_TEST_MYSQL_DSN="${MYSQL_USER}@tcp(${MYSQL_HOST}:${MYSQL_PORT})/?parseTime=true"
# For pt-mysql-summary to run MySQL client binary from docker.
# https://github.com/percona/percona-toolkit/blob/b79a6c621b948fadc6b1192a5ecacb394a6b24f6/bin/pt-mysql-summary#L848
#- CMD_MYSQL="docker-compose exec mysql mysql"
#- CMD_MYSQLDUMP="docker-compose exec mysql mysqldump"
matrix:
- MYSQL_IMAGE=mysql:5.5
- MYSQL_IMAGE=mysql:5.6
- MYSQL_IMAGE=mysql:5.7
- MYSQL_IMAGE=mysql:8.0
- MYSQL_IMAGE=percona/percona-server:5.6
- MYSQL_IMAGE=percona/percona-server:5.7
# percona:5.5 doesn't pass one test, not really sure why as other 5.5 images work.
#- MYSQL_IMAGE=percona:5.5
- MYSQL_IMAGE=percona:5.6
- MYSQL_IMAGE=percona:5.7
- MYSQL_IMAGE=mariadb:5.5
- MYSQL_IMAGE=mariadb:10.0
- MYSQL_IMAGE=mariadb:10.1
# pt-mysql-summary hangs on mariadb:10.2
# https://jira.percona.com/browse/PT-1549
#- MYSQL_IMAGE=mariadb:10.2
- MONGODB_IMAGE=mongo:3.2
- MONGODB_IMAGE=mongo:3.4
- MONGODB_IMAGE=mongo:3.6
- MONGODB_IMAGE=percona/percona-server-mongodb:3.2
- MONGODB_IMAGE=percona/percona-server-mongodb:3.4
- MONGODB_IMAGE=percona/percona-server-mongodb:3.6
addons:
apt:
sources:
- sourceline: "deb http://repo.percona.com/apt $(lsb_release -s -c) main"
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&fingerprint=on&search=0x8507EFA5'
packages:
- percona-toolkit
install:
# ensure that vendor/ is in sync with code and Gopkg.*
- curl https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 -L -o ~/dep && chmod +x ~/dep
- rm -fr vendor/
- ~/dep ensure -v
- git diff --exit-code
before_script:
# run docker containers
- docker-compose up -d
# wait for MySQL to become available
- ./with_backoff.sh docker-compose exec mysql mysql --protocol=tcp -u"${MYSQL_USER}" -e 'SELECT 1'
# log versions
- docker --version
- docker-compose --version
- docker-compose exec mysql mysql --version
- docker-compose exec mongo mongo --version
# we need at least one document in test db
- mongo --eval 'db.init.insert({})'
# show logs from all components
- docker-compose logs
script:
- test/runner.sh
notifications:
email: false
slack:
on_success: change
on_failure: change
rooms:
secure: A/jke9SzibxoGc0H86z5fnGKoLr6xTPBNUcjLMVJ2xzqp8HX90gOdWKenooCu6tyJ0gXX8nUgIOQWsupICy2P2HPGXXKonY4Lq1qRPbxXnlqweaoTf2IZ8SmQeyP6TvNZF9978YRLqRBmJXzq7dcZCF2Gr/1XLPDCNIVJcKgG+heVUubt6q8EnIzB4OYKwUJwZ2ORzleLwqzs8ViB5ffmOXmAVd80rUTcCOailKE4+ML+CQO1MLbGxbdVjacivjM0cvXoibRZF5bhUsg7qoszaWJidJjX9UtW9rRKyPuh1vh1HFgayxmWNeiqe7yyIwGZU37Gnten+4XsVpKYxSOfRWz8TNu01jdDs7e8RgJ29OCwVG88y/yxrBtDlhjsKvy7owV1eAH63YVUJzgoVQZKUt04LAKTMxjEZKBb7o7+GdmSHQWPj8NNmcPEWBwSg99yU3xTQXefgLjqiCQTTNaiNEa1JgPNroKXzAcjJ12qpY5F5MWPFZ2ndTOL2kVEn4iqV7t6bresISXAZKJn+IrjUdZ+ZBr48zcnO7rgWGvszScDWt3oqjRlCbwxXWTL8VoDouylGVAJTUHxo07Bs307cwYiLsUp/2hPvcY2ELXrQXTqk3ZHJkMHa4U+nNvXY9RYNNqFmvAnUCHG6JfBda4b0SCjbCINjQVMCsF5DSXua8=