-
Notifications
You must be signed in to change notification settings - Fork 152
/
.travis.yml
38 lines (37 loc) · 1.48 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
37
38
language: python
python:
- "2.7"
- "3.4"
- "3.5"
env:
- DJANGO="Django>=1.8,<1.9" DB=sqlite
- DJANGO="Django>=1.8,<1.9" DB=postgres
- DJANGO="Django>=1.8,<1.9" DB=mysql
- DJANGO="Django>=1.11,<2.0" DB=sqlite DJANGO_LTS=true
- DJANGO="Django>=1.11,<2.0" DB=postgres DJANGO_LTS=true
- DJANGO="Django>=1.11,<2.0" DB=mysql DJANGO_LTS=true
- DJANGO="Django>=2.0,<2.1" DB=sqlite
- DJANGO="Django>=2.0,<2.1" DB=postgres
- DJANGO="Django>=2.0,<2.1" DB=mysql
matrix:
exclude:
- python: "2.7"
env: DJANGO="Django>=2.0,<2.1" DB=sqlite
- python: "2.7"
env: DJANGO="Django>=2.0,<2.1" DB=postgres
- python: "2.7"
env: DJANGO="Django>=2.0,<2.1" DB=mysql
install:
- if [[ $DB == mysql ]]; then pip install -qU mysqlclient; fi
- if [[ $DB == postgres ]]; then pip install -qU psycopg2; fi
- pip install -qU $DJANGO
- if [[ $DB == postgres && $TRAVIS_PYTHON_VERSION == '3.5' && $DJANGO_LTS == true ]] ; then export WITH_COVERALL=true ; fi
- if [[ $WITH_COVERALL == true ]]; then pip install -qU coveralls ; fi
- CFLAGS="-O0" pip install -qU -r test/test_project/requirements_test.txt
before_script:
- if [[ $DB == mysql ]]; then mysql -e 'SET GLOBAL wait_timeout = 36000 ; create database pybbm;'; fi
- if [[ $DB == postgres ]]; then psql -c 'create database pybbm;' -U postgres; fi
script:
- if [[ $WITH_COVERALL == true ]]; then coverage run setup.py test; else python setup.py test ; fi
after_success:
- if [[ $WITH_COVERALL == true ]]; then coveralls ; fi