forked from TailorDev/django-tailordev-biblio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (36 loc) · 1.04 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
python:
- 2.7
- 3.4
- 3.5
- 3.6
env:
- DJANGO_RELEASE='Django>=1.8,<1.9'
- DJANGO_RELEASE='Django>=1.9,<1.10'
- DJANGO_RELEASE='Django>=1.10,<1.11'
- DJANGO_RELEASE='Django>=1.11,<1.12'
- DJANGO_RELEASE='Django>=2.0,<2.1'
- DJANGO_RELEASE='Django>=2.1,<2.2'
matrix:
exclude:
### These older Django version don't support Python 3.5+:
# AttributeError: module 'html.parser' has no attribute 'HTMLParseError'
- python: 3.5
env: DJANGO_RELEASE='Django>=1.7,<1.8'
- python: 3.6
env: DJANGO_RELEASE='Django>=1.7,<1.8'
# Django 2.0+ dropped support for python 2
- python: 2.7
env: DJANGO_RELEASE='Django>=2.0,<2.1'
- python: 2.7
env: DJANGO_RELEASE='Django>=2.1,<2.2'
# Django 2.1+ dropped support for python 3.4
- python: 3.4
env: DJANGO_RELEASE='Django>=2.1,<2.2'
install:
- pip install "$DJANGO_RELEASE"
- pip install -r requirements/dev.txt
script:
- flake8 td_biblio/
- PYTHONPATH=$(pwd) DATABASE_URL="sqlite:///:memory:" py.test
after_success: coveralls