-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
31 lines (25 loc) · 880 Bytes
/
.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
# Config file for automatic testing at travis-ci.org
language: python
python:
- "3.7"
- "3.6"
- "3.5"
- "3.4"
- "2.7"
before_install:
- curl -L https://github.com/coreos/etcd/releases/download/v3.0.4/etcd-v3.0.4-linux-amd64.tar.gz -o etcd-v3.0.4-linux-amd64.tar.gz
- tar xzvf etcd-v3.0.4-linux-amd64.tar.gz
- cd etcd-v3.0.4-linux-amd64
- ./etcd > /dev/null &
- cd ..
install:
- pip install -r requirements.txt
- pip install coverage==3.7.1 coveralls
before_script:
- sleep 10
# command to run tests, e.g. python setup.py test
script:
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then PYTHONWARNINGS=i coverage run --include "layeredconfig/*py" -m unittest2 discover tests; fi
- if [[ $TRAVIS_PYTHON_VERSION != '2.6' ]]; then PYTHONWARNINGS=i coverage run --include "layeredconfig/*py" -m unittest discover tests; fi
after_success:
- coveralls