This repository has been archived by the owner on May 7, 2024. It is now read-only.
forked from Suor/django-cacheops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
62 lines (55 loc) · 1.44 KB
/
tox.ini
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
[tox]
minversion = 2.7
install_command = pip install --process-dependency-links {opts} {packages}
envlist =
lint,
py27-dj{18,19,110,111},
py33-dj18,
py34-dj{18,19,110,111},
py35-dj{18,19,110,111,20,master},
py36-dj{111,20,master},
pypy-dj{18,19,110,111}
[travis:env]
DJANGO =
1.8: dj18
1.9: dj19
1.10: dj110
1.11: dj111
2.0: dj20
master: djmaster
[testenv]
whitelist_externals = env
# This is required for gdal to install
setenv =
CPLUS_INCLUDE_PATH=/usr/include/gdal
C_INCLUDE_PATH=/usr/include/gdal
deps =
dj18: Django>=1.8,<1.9
dj19: Django>=1.9,<1.10
dj110: Django>=1.10,<1.11
dj111: Django>=1.11,<1.12
dj20: Django>=2.0,<2.1
djmaster: git+https://github.com/django/django
mysqlclient
py{27,33,34,35,36}: psycopg2
gdal=={env:GDAL_VERSION:2.1}
pypy: psycopg2cffi>=2.7.6
before_after==1.0.0
commands =
./run_tests.py []
env CACHEOPS_PREFIX=1 ./run_tests.py []
env CACHEOPS_LRU=1 ./run_tests.py []
env CACHEOPS_DB=mysql ./run_tests.py []
env CACHEOPS_DB=postgresql ./run_tests.py []
env CACHEOPS_DB=postgis ./run_tests.py []
; Test invalidate command
./manage.py invalidate tests.post
./manage.py invalidate tests
./manage.py invalidate all
[flake8]
max-line-length = 100
ignore = E126,E127,E131,E226,E261,E265,E266,E302,E305,E401,E402,F403,F405,E731
exclude = cross.py,.tox/*
[testenv:lint]
deps = flake8
commands = flake8