-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
31 lines (25 loc) · 1.27 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
language: python
python:
- "2.7"
services:
- couchdb
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libgs9 libtiff5 libpoppler44 a2ps
# command to install dependencies
install: "pip install ."
before_script:
- export SITE_PACKAGES=$(python -c "import distutils; print(distutils.sysconfig.get_python_lib())")
- export GIT_ROOT=$(pwd)
- cp -rf fixtures $SITE_PACKAGES/fixtures
- mkdir $SITE_PACKAGES/db $SITE_PACKAGES/log $SITE_PACKAGES/documents
- cd $VIRTUAL_ENV
- python lib/python2.7/site-packages/adlibre_dms/manage.py syncdb --noinput --all
- python lib/python2.7/site-packages/adlibre_dms/manage.py migrate core --fake
- python lib/python2.7/site-packages/adlibre_dms/manage.py migrate dms_plugins --fake
- python lib/python2.7/site-packages/adlibre_dms/manage.py loaddata $SITE_PACKAGES/fixtures/initial_datas.json
- python lib/python2.7/site-packages/adlibre_dms/manage.py loaddata $SITE_PACKAGES/fixtures/core.json
- python lib/python2.7/site-packages/adlibre_dms/manage.py loaddata $SITE_PACKAGES/fixtures/djangoplugins.json
- python lib/python2.7/site-packages/adlibre_dms/manage.py loaddata $SITE_PACKAGES/fixtures/dms_plugins.json
# command to run tests
script: python lib/python2.7/site-packages/adlibre_dms/manage.py test --verbosity 2