-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
44 lines (44 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
37
38
39
40
41
42
43
44
dist: xenial
sudo: false
language: python
cache: pip
python:
- 3.7
services:
- postgresql
# Matrix composition:
# Django LTS versions: All supported Python releases
# Other versions and master branch: The newest possible Python release
matrix:
fast_finish: true
include:
- python: 3.7
env: REQ="https://github.com/django/django/archive/master.zip#egg=Django"
- python: 3.7
env: REQ="Django>=3.0,<3.1"
- python: 3.6
env: REQ="Django>=3.0,<3.1"
- python: 3.7
env: REQ="Django>=2.2,<3.0"
- python: 3.6
env: REQ="Django>=2.2,<3.0"
- python: 3.5
env: REQ="Django>=2.2,<3.0"
- python: 3.7
env: REQ="Django>=2.1,<2.2"
- python: 3.7
env: REQ="Django>=2.0,<2.1"
- python: 3.7
env: REQ="black flake8"
install:
- pip install black flake8
script:
- flake8 .
- black --check spark tests
allow_failures:
- env: REQ="https://github.com/django/django/archive/master.zip#egg=Django"
install:
- pip install -U pip setuptools wheel
- pip install $REQ
- python setup.py install
script: cd tests && ./manage.py test -v 2 testapp && cd ..