forked from rijdendetreinen/rdt-serviceinfo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (48 loc) · 1.34 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: python
python:
- "2.7"
cache: pip
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
sudo: false
services:
- redis-server
addons:
apt:
packages:
- python-argparse
- python-lxml
- python-mysqldb
- python-yaml
- python-redis
- python-tz
# These packages do not work correctly in the Travis CI Docker VMs:
# - python-zmq
# - python-mysqldb
virtualenv:
system_site_packages: true
install:
# Install via pip because these packages have problems in Travis CI Docker images:
- pip install pyzmq --install-option="--zmq=bundled"
#- pip install MySQL-python
# Always install via pip:
- pip install isodate
- pip install bottle
- pip install codecov
- pip install coveralls
- pip install scrutinizer-ocular
before_script:
- cp tests/testdata/serviceinfo-unittest.travis.yaml config/serviceinfo-unittest.yaml
- mysql -e 'create database rdt_iff_test;'
- mysql -u travis rdt_iff_test < tests/testdata/iff-testset.sql
- mysql -e 'create database rdt_archive_test;'
- mysql -u travis rdt_archive_test < doc/create-tables-archive.sql
script: coverage run --source serviceinfo -m py.test
after_success:
- codecov
- coveralls
- ocular --data-file ".coverage"
notifications:
webhooks:
# trigger Buildtime Trend Service to parse Travis CI log
- https://buildtimetrend.herokuapp.com/travis