forked from eHealthAfrica/formhub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
24 lines (24 loc) · 1.08 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
language: python
services:
- mongodb
python:
- "2.7"
before_install:
- sudo apt-get install -y python-psycopg2 postgresql-contrib
- sudo apt-get install gfortran libatlas-base-dev libjpeg-dev zlib1g-dev
- sudo ln -s /usr/lib/`uname -i`-linux-gnu/libjpeg.so ~/virtualenv/python2.7/lib/
- sudo ln -s /usr/lib/`uname -i`-linux-gnu/libz.so ~/virtualenv/python2.7/lib/
install:
- psql -c 'create database formhubdjangodb;' -U postgres
- pip install numpy --use-mirrors
- pip install -r requirements.pip
- python manage.py syncdb --noinput --settings=formhub.preset.ehealth_test
- python manage.py migrate --noinput --settings=formhub.preset.ehealth_test
- python manage.py collectstatic --clear --noinput --settings=formhub.preset.ehealth_test
script:
- python manage.py test --noinput --settings=formhub.preset.ehealth_test api main odk_logger odk_viewer restservice sms_support staff stats
- ./js_tests/EnvJasmine/bin/run_all_tests.sh --testDir=../ --configFile=../env_jasmine.conf.js
notifications:
email:
flowdock: 232485f7661e644ae5878944c2597042