forked from django-tastypie/django-tastypie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (59 loc) · 1.19 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
sudo: false
language: python
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
env:
- DJANGO_VERSION=1.5
- DJANGO_VERSION=1.6
- DJANGO_VERSION=1.7
- DJANGO_VERSION=1.8
- DJANGO_VERSION=dev
matrix:
allow_failures:
- env: DJANGO_VERSION=dev
- env: MODE=flake8-strict
exclude:
- env: DJANGO_VERSION=dev
python: "2.6"
- env: DJANGO_VERSION=1.8
python: "2.6"
- env: DJANGO_VERSION=1.7
python: "2.6"
include:
- python: "2.7"
env: MODE=flake8
- python: "2.7"
env: MODE=flake8-strict
- python: "2.7"
env: MODE=docs
- python: "3.4"
env: MODE=docs
addons:
apt:
packages:
- python-sphinx
- python3-sphinx
- binutils
- libproj-dev
- gdal-bin
- spatialite-bin
- libspatialite-dev
cache:
directories:
- $HOME/.cache/pip
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
# command to install dependencies
install:
- export PIP_DOWNLOAD_CACHE=$HOME/.cache/pip
- pip install -U pip wheel virtualenv
- pip install tox coveralls
after_success:
- coveralls
# command to run tests
script:
- coverage erase
- tox -e py${TRAVIS_PYTHON_VERSION/./}-${DJANGO_VERSION}${MODE}