-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
51 lines (41 loc) · 989 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
language: python
python:
- "3.5.2"
env:
- DJANGO_VERSION=1.10
addons:
apt_packages:
- swig
- libssl-dev
- libssl0.9.8
- python-m2crypto
- libcups2-dev
- unixodbc-dev
- python-mysqldb
services:
- mysql
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
# virtualenv:
# system_site_packages: true
install:
- pip install --upgrade pip
- pip install -q Django==$DJANGO_VERSION
- pip install flake8
- pip install coveralls
- pip install pycups
- pip install -q -r requirements.txt
before_script:
#- flake8 edc-pharmacy
# - mkdir -p crypto_fields/test_keys
- mysql -e 'create database test_default CHARACTER SET utf8;'
# - mysql -e 'create database td_lab CHARACTER SET utf8;'
script:
- coverage run --source=edc_pharma manage.py test
r_github_packages:
- edc-pharmacy/covr
after_success:
- coveralls
- Rscript -e 'covr::coveralls()'