-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
31 lines (28 loc) · 1.02 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
language: python
python:
- "3.6"
sudo: required
services:
- cassandra
- postgresql
addons:
postgresql: "9.5"
before_install:
- sudo apt-get update -qq
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:
- psql -c 'create database esmond;' -U postgres
- python esmond/manage.py makemigrations --noinput
- python esmond/manage.py migrate --noinput
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.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