-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy path.travis.yml
34 lines (34 loc) · 894 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
language: python
python:
- "3.5"
- "3.6"
- "3.7"
- "3.8"
env:
- DJANGO=1.11 DRF=3.11
- DJANGO=2.2 DRF=3.11
- DJANGO=3.0 DRF=3.11
matrix:
exclude:
- python: "3.5"
env: DJANGO=3.0 DRF=3.11
- python: "3.7"
env: DJANGO=1.11 DRF=3.11
- python: "3.8"
env: DJANGO=1.11 DRF=3.11
install:
- pip install -q Django==$DJANGO
- pip install -q djangorestframework==$DRF
- pip install pep8
- pip install -q -e .
before_script:
- "pep8 drf_generators --exclude=templates && cd tests"
script:
- python manage.py generate api --format apiview --force
- python manage.py test api
- python manage.py generate api --format function --force
- python manage.py test api
- python manage.py generate api --format viewset --force
- python manage.py test api
- python manage.py generate api --format modelviewset --force
- python manage.py test api