forked from palewire/django-calaccess-raw-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (29 loc) · 1.13 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
language: python
sudo: false
python:
- "2.7"
- "3.5"
env:
- DJANGO_VERSION=1.8.13 DATABASE_SETTINGS='settings_test_mysql.py'
- DJANGO_VERSION=1.8.13 DATABASE_SETTINGS='settings_test_postgresql.py'
- DJANGO_VERSION=1.8.13 DATABASE_SETTINGS='settings_test_multi_dbs.py'
- DJANGO_VERSION=1.9.7 DATABASE_SETTINGS='settings_test_mysql.py'
- DJANGO_VERSION=1.9.7 DATABASE_SETTINGS='settings_test_postgresql.py'
- DJANGO_VERSION=1.9.7 DATABASE_SETTINGS='settings_test_multi_dbs.py'
- DJANGO_VERSION=1.10a1 DATABASE_SETTINGS='settings_test_mysql.py'
- DJANGO_VERSION=1.10a1 DATABASE_SETTINGS='settings_test_postgresql.py'
- DJANGO_VERSION=1.10a1 DATABASE_SETTINGS='settings_test_multi_dbs.py'
install:
- 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/$DATABASE_SETTINGS.template example/settings_local.py
script:
- flake8 calaccess_raw
- python example/manage.py migrate
- coverage run example/manage.py test calaccess_raw
after_success:
- coveralls