forked from zimmerman-team/IATI.cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (26 loc) · 973 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
language: python
python:
- "2.7"
# setup database
before_install:
# Build the Spatialite db backend
- .travis/build_pysqlite2.sh
- sudo apt-get install libspatialite-dev
# Build the mysql 5.6 db backend
- .travis/install-mysql-5.6
- mysql -e 'create database oipa_test COLLATE utf8_unicode_ci;'
- sudo apt-get -q -y install binutils gdal-bin libgdal1h
# command to install dependencies
install:
- "pip install -r OIPA/requirements.txt"
- "pip install -r OIPA/test_requirements.txt"
- "pip freeze -q"
- "echo -e 'no\n' | OIPA/manage.py migrate --settings=OIPA.travis_test_settings"
- "echo -e 'no\n' | OIPA/manage.py migrate --database=mysql --settings=OIPA.travis_test_settings"
# create full text search indexes after running syncdb
before_script:
- mysql oipa_test < .travis/create_fts_indexes.sql
# command to run tests
script: cd OIPA && coverage run --source=. --omit=*__init__*,*data_backup* -m py.test
after_success:
- coveralls