forked from DataDog/dd-agent
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
56 lines (56 loc) · 2.22 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
# blacklist
branches:
except:
- check-haproxy
services:
- mysql
- elasticsearch
- memcache
before_script:
- mysql -e "create user 'dog'@'localhost' identified by 'dog'"
language: python
python:
- "2.6"
- "2.7"
before_install:
- sudo apt-get update
- sudo apt-get install openjdk-6-jre-headless
- sudo apt-get install sysstat
- sudo apt-get install haproxy
- sudo apt-get install python-mysqldb
- sudo apt-get install tomcat6
- sudo apt-get install solr-tomcat
- sudo apt-get install nginx
- sudo apt-get install apache2
- sudo apt-get install couchdb
- sudo apt-get install lighttpd
- sudo apt-get install gearman
install:
- pip install -r requirements.txt --use-mirrors
- pip install . --use-mirrors
before_script:
- curl -L https://raw.github.com/DataDog/dd-agent/master/tests/haproxy.cfg > /tmp/haproxy.cfg
- sudo service haproxy restart
- sudo bash -c "curl -L https://raw.github.com/DataDog/dd-agent/master/tests/tomcat_cfg.xml > /etc/tomcat6/server.xml"
- sudo bash -c "curl -L https://raw.github.com/DataDog/dd-agent/master/tests/tomcat6 >> /etc/default/tomcat6"
- sudo service nginx stop
- sudo bash -c "curl -L https://raw.github.com/DataDog/dd-agent/master/tests/nginx.conf > /etc/nginx/conf.d/default.conf"
- sudo service apache2 stop
- sudo bash -c "curl -L https://raw.github.com/DataDog/dd-agent/master/tests/apache/ports.conf > /etc/apache2/ports.conf"
- sudo bash -c "curl -L https://raw.github.com/DataDog/dd-agent/master/tests/apache/apache.conf > /etc/apache2/apache.conf"
- sudo /etc/init.d/lighttpd stop
- sudo bash -c "curl -L https://raw.github.com/DataDog/dd-agent/master/tests/lighttpd/lighttpd.conf > /etc/lighttpd/lighttpd.conf"
- sudo mkdir -p /etc/dd-agent/
- sudo install -d -o "$(id -u)" /var/log/datadog
- sudo bash -c "curl -L https://raw.github.com/DataDog/dd-agent/master/datadog.conf.example > /etc/dd-agent/datadog.conf"
- sudo service apache2 start
- sudo service nginx start
- sudo /etc/init.d/lighttpd start
- sudo service tomcat6 restart
- sudo service couchdb start
env:
- DB=redis
script: nosetests -A 'not windows' tests
notifications:
webhooks:
- https://www.buildheroes.com/api/projects/1fa0bf90eb6f781bf067c82439775fd9d896c0ae/builds