-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
57 lines (49 loc) · 1.17 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
49
50
51
52
53
54
55
56
57
language: python
python:
- "2.7"
# - "3.2"
# - "3.3"
# - "3.4"
# - "nightly"
env:
- DJANGO_VERSION=1.6
# - DJANGO_VERSION=1.7
# - DJANGO_VERSION=1.8
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 M2Crypto
- pip install pyodbc
- pip install pycups
- pip install mysql-python
- pip install -q -r requirements.txt
before_script:
- flake8 bhp066
- mysql -e 'create database edc;'
- mysql -e 'create database edc_lab;'
- mysql -e 'create database test_default CHARACTER SET utf8;'
- mysql -e 'create database test_lab_api CHARACTER SET utf8;'
- mysql -e 'create database dispatch_destination CHARACTER SET utf8;'
script:
- coverage run --source=bhp066 manage.py test
after_success:
- coveralls