forked from perfsonar/esmond
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (30 loc) · 1.63 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
language: python
python:
- "2.7"
services:
- cassandra
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y libsnmp-base libsnmp-dev libsnmp-python
install:
- pip install -r requirements.txt
- pip install coveralls
# The env var stuff needs to be on one line.
env:
- VENV_ROOT=`pwd` ESMOND_ROOT=${VENV_ROOT}/devel ESMOND_CONF=${ESMOND_ROOT}/esmond-devel.conf DJANGO_SETTINGS_MODULE=esmond.settings
before_script:
- python esmond/manage.py syncdb --noinput
- python esmond/manage.py loaddata oidsets.json
script:
# Run each test seperately but append to same coverage report.
- coverage run --append --source=esmond --omit=*wsgi*,*commands* esmond/manage.py test api.tests.test_api
- coverage run --append --source=esmond --omit=*wsgi*,*commands* esmond/manage.py test api.tests.test_client
- coverage run --append --source=esmond --omit=*wsgi*,*commands* esmond/manage.py test api.tests.test_correlator
- coverage run --append --source=esmond --omit=*wsgi*,*commands* esmond/manage.py test api.tests.test_persist
- coverage run --append --source=esmond --omit=*wsgi*,*commands* esmond/manage.py test api.tests.test_translator
- coverage run --append --source=esmond --omit=*wsgi*,*commands* esmond/manage.py test api.tests.test_util
- coverage run --append --source=esmond --omit=*wsgi*,*commands* esmond/manage.py test api.tests.perfsonar.test_api
- coverage run --append --source=esmond --omit=*wsgi*,*commands* esmond/manage.py test api.tests.perfsonar.test_client
- coverage run --append --source=esmond --omit=*wsgi*,*commands* esmond/manage.py test api.tests.perfsonar.test_data
after_success:
- coveralls