forked from palewire/django-calaccess-raw-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (31 loc) · 987 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
language: python
sudo: false
cache:
directories:
- $HOME/.cache/pip
python:
- "2.7"
- "3.3"
- "3.4"
env:
- DJANGO_VERSION=1.7.10 DATABASE_SETTINGS='settings_test_mysql.py'
- DJANGO_VERSION=1.8.4 DATABASE_SETTINGS='settings_test_mysql.py'
- DJANGO_VERSION=1.7.10 DATABASE_SETTINGS='settings_test_postgresql.py'
- DJANGO_VERSION=1.8.4 DATABASE_SETTINGS='settings_test_postgresql.py'
install:
- export XDG_CACHE_HOME=$HOME/.cache/
- pip install -r requirements_dev.txt
- pip uninstall -y Django
- pip install -q Django==$DJANGO_VERSION
before_script:
- mysql -e 'create database calaccess_raw;'
- psql -c 'create database calaccess_raw;' -U postgres
- cp example/project/$DATABASE_SETTINGS.template example/project/settings_local.py
script:
- pep8 calaccess_raw
- pyflakes calaccess_raw
- python example/manage.py createcalaccessrawmodeldocs
- cd docs && make html && cd ..
- coverage run example/manage.py test calaccess_raw
after_success:
- coveralls