forked from django-tastypie/django-tastypie
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
73 lines (62 loc) · 1.31 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
sudo: false
dist: bionic
language: python
python:
- "3.5"
- "3.6"
- "3.7"
- "3.8"
env:
- MODE=flake8
- MODE=flake8-strict
- MODE=docs
- DJANGO_VERSION=dj22
- DJANGO_VERSION=dj30
- DJANGO_VERSION=dj31
- DJANGO_VERSION=dj32
- DJANGO_VERSION=djdev
matrix:
allow_failures:
- env: DJANGO_VERSION=djdev
- env: MODE=flake8-strict
exclude:
- python: "3.5"
env: MODE=flake8
- python: "3.5"
env: MODE=flake8-strict
- python: "3.5"
env: MODE=flake8-docs
- python: "3.5"
env: DJANGO_VERSION=dj30
- python: "3.5"
env: DJANGO_VERSION=dj31
- python: "3.5"
env: DJANGO_VERSION=dj32
- python: "3.5"
env: DJANGO_VERSION=djdev
before_install:
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 762E3157
addons:
apt:
packages:
- binutils
- libproj-dev
- gdal-bin
- libsqlite3-mod-spatialite
cache:
directories:
- $HOME/.cache/pip
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
# command to install dependencies
install:
- pip install -U pip
- pip install -U wheel virtualenv
- pip install tox coveralls
after_success:
- coveralls
# command to run tests
script:
- apt list --installed
- coverage erase
- tox -e py${TRAVIS_PYTHON_VERSION/./}-${DJANGO_VERSION}${MODE}