forked from DataDog/integrations-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
131 lines (120 loc) · 4.85 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
sudo: required
language: python
cache:
directories:
- $HOME/.cache/pip
- $HOME/dd-agent
- vendor/cache
python:
- "2.7"
git:
depth: 3
branches:
only:
- master
services:
- docker
matrix:
fast_finish: true
env:
global:
- NOSE_FILTER="not windows and not fixme"
- VOLATILE_DIR=/tmp/integration-sdk-testing
- SKIP_CLEANUP=true
- INTEGRATIONS_DIR=$HOME/embedded
- PIP_CACHE=$HOME/.cache/pip
- SDK_TESTING=true
- BUNDLE_PATH=$TRAVIS_BUILD_DIR/vendor/cache
- DD_AGENT_BRANCH=master
- EXTRAS_BRANCH=master
- REQ_LOCALS="$TRAVIS_BUILD_DIR,$HOME/dd-agent,$HOME/integrations-extras"
matrix:
- TRAVIS_FLAVOR=default
- TRAVIS_FLAVOR=activemq_xml FLAVOR_VERSION=5.11.1
- TRAVIS_FLAVOR=apache FLAVOR_VERSION=2.4.12
- TRAVIS_FLAVOR=cassandra FLAVOR_VERSION=2.0.17
- TRAVIS_FLAVOR=cassandra FLAVOR_VERSION=2.1.14
- TRAVIS_FLAVOR=couch FLAVOR_VERSION=1.6.1
- TRAVIS_FLAVOR=consul FLAVOR_VERSION=v0.6.4
- TRAVIS_FLAVOR=consul FLAVOR_VERSION=0.7.2
- TRAVIS_FLAVOR=docker_daemon
- TRAVIS_FLAVOR=elastic FLAVOR_VERSION=0.90.13
- TRAVIS_FLAVOR=elastic FLAVOR_VERSION=1.0.3
- TRAVIS_FLAVOR=elastic FLAVOR_VERSION=1.1.2
- TRAVIS_FLAVOR=elastic FLAVOR_VERSION=1.2.4
- TRAVIS_FLAVOR=elastic FLAVOR_VERSION=1.3.9
- TRAVIS_FLAVOR=elastic FLAVOR_VERSION=1.4.5
- TRAVIS_FLAVOR=elastic FLAVOR_VERSION=1.5.2
- TRAVIS_FLAVOR=elastic FLAVOR_VERSION=1.6.2
- TRAVIS_FLAVOR=elastic FLAVOR_VERSION=1.7.4
- TRAVIS_FLAVOR=elastic FLAVOR_VERSION=2.0.2
- TRAVIS_FLAVOR=elastic FLAVOR_VERSION=2.1.1
- TRAVIS_FLAVOR=etcd FLAVOR_VERSION=2.0.5
- TRAVIS_FLAVOR=fluentd FLAVOR_VERSION=v0.12.22
- TRAVIS_FLAVOR=gearmand FLAVOR_VERSION=latest
- TRAVIS_FLAVOR=gunicorn FLAVOR_VERSION=19.6.0
- TRAVIS_FLAVOR=go_expvar FLAVOR_VERSION=latest
- TRAVIS_FLAVOR=haproxy FLAVOR_VERSION=1.4.26
- TRAVIS_FLAVOR=haproxy FLAVOR_VERSION=1.5.11
- TRAVIS_FLAVOR=haproxy FLAVOR_VERSION=1.6.9
- TRAVIS_FLAVOR=kafka_consumer FLAVOR_VERSION=0.10.1.0-1
- TRAVIS_FLAVOR=kafka FLAVOR_VERSION=0.10.1.0-1
- TRAVIS_FLAVOR=kong FLAVOR_VERSION=0.9.0
- TRAVIS_FLAVOR=kyototycoon FLAVOR_VERSION=0.9.56
- TRAVIS_FLAVOR=lighttpd
- TRAVIS_FLAVOR=mcache FLAVOR_VERSION=1.4.22
- TRAVIS_FLAVOR=mongo FLAVOR_VERSION=2.6.9
- TRAVIS_FLAVOR=mongo FLAVOR_VERSION=3.0.1
- TRAVIS_FLAVOR=mongo FLAVOR_VERSION=3.2.10
- TRAVIS_FLAVOR=mysql FLAVOR_VERSION=5.5
- TRAVIS_FLAVOR=mysql FLAVOR_VERSION=5.6
- TRAVIS_FLAVOR=mysql FLAVOR_VERSION=5.7
- TRAVIS_FLAVOR=nginx FLAVOR_VERSION=1.6.2
- TRAVIS_FLAVOR=nginx FLAVOR_VERSION=1.7.11
- TRAVIS_FLAVOR=nginx FLAVOR_VERSION=1.9.15
- TRAVIS_FLAVOR=nginx FLAVOR_VERSION=1.11.8
- TRAVIS_FLAVOR=nginx FLAVOR_VERSION=1.10.2
- TRAVIS_FLAVOR=openstack
- TRAVIS_FLAVOR=pgbouncer FLAVOR_VERSION=latest
- TRAVIS_FLAVOR=php_fpm FLAVOR_VERSION=5.5
- TRAVIS_FLAVOR=postgres FLAVOR_VERSION=latest
- TRAVIS_FLAVOR=powerdns_recursor FLAVOR_VERSION=3.7.3
- TRAVIS_FLAVOR=powerdns_recursor FLAVOR_VERSION=4.0.3
- TRAVIS_FLAVOR=rabbitmq FLAVOR_VERSION=3.5.0
- TRAVIS_FLAVOR=redisdb FLAVOR_VERSION=2.4.18
- TRAVIS_FLAVOR=redisdb FLAVOR_VERSION=2.6.17
- TRAVIS_FLAVOR=redisdb FLAVOR_VERSION=2.8.19
- TRAVIS_FLAVOR=riak FLAVOR_VERSION=latest
- TRAVIS_FLAVOR=ssh_check
- TRAVIS_FLAVOR=snmp
- TRAVIS_FLAVOR=solr FLAVOR_VERSION=6.2
- TRAVIS_FLAVOR=sqlserver FLAVOR_VERSION=latest
- TRAVIS_FLAVOR=statsd
- TRAVIS_FLAVOR=supervisord FLAVOR_VERSION=3.3.0
- TRAVIS_FLAVOR=tokumx
- TRAVIS_FLAVOR=tomcat FLAVOR_VERSION=latest
- TRAVIS_FLAVOR=twemproxy FLAVOR_VERSION=latest
- TRAVIS_FLAVOR=varnish FLAVOR_VERSION=4.1.4
- TRAVIS_FLAVOR=varnish FLAVOR_VERSION=5.0.0
- TRAVIS_FLAVOR=win32_event_log
# END OF TRAVIS MATRIX
install:
- bundle install
- bundle package
- git -C $HOME/dd-agent pull || git clone -b $DD_AGENT_BRANCH --depth 1 https://github.com/DataDog/dd-agent.git $HOME/dd-agent
- git -C $HOME/integrations-extras pull || git clone -b $EXTRAS_BRANCH --depth 1 https://github.com/DataDog/integrations-extras.git $HOME/integrations-extras
- echo "$HOME/dd-agent/" > $(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")/datadog-agent.pth
- if [ -e ~/dd-agent/requirements.txt ]; then pip install -r ~/dd-agent/requirements.txt; fi
script:
- bundle exec rake prep_travis_ci
- bundle exec rake ci:run
- bundle exec rake requirements
# we should clean generated files before we save the cache
# We don't want to save .pyc files
# Since clobber only cleans the project directory,
# everything outside of it should be cleaned, too, so we'll use find and -delete
before_cache:
- rake clobber
- find $HOME/.cache/pip $HOME/dd-agent -name *.pyc -delete
after_script:
- if [[ $(docker ps -a -q) ]]; then docker stop $(docker ps -a -q); fi