1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-09 22:38:19 +02:00

Add Django version (#162)

This commit is contained in:
Adam Dobrawy 2018-03-09 19:09:06 +01:00 committed by Adam Coddington
parent 0a10dd509d
commit c1b20f01eb
2 changed files with 34 additions and 14 deletions

View file

@ -4,6 +4,7 @@ python:
- '3.4' - '3.4'
- '3.5' - '3.5'
- '3.6' - '3.6'
env: env:
matrix: matrix:
- DJANGO='>=1.7,<1.8' - DJANGO='>=1.7,<1.8'
@ -11,6 +12,7 @@ env:
- DJANGO='>=1.9,<1.10' - DJANGO='>=1.9,<1.10'
- DJANGO='>=1.10,<1.11' - DJANGO='>=1.10,<1.11'
- DJANGO='>=1.11,<2.0' - DJANGO='>=1.11,<2.0'
- DJANGO='>=2.0,<2.1'
global: global:
- secure: aswHU7pQroGM+GHoYlhXzzk2FYfqxXJORjqXPsbgoHAIu4Bssaj8+YAzIcdy3j9kSt4I8VBpjnn8H/wzQXki75JBZOosQrIeMK018+uR+ZMONBLqDYW/N7EJHLgZt9QXxQNKeZygrD4GN/Dc4gLHGvPQC/RfPuuHcnF0Liaahoo= - secure: aswHU7pQroGM+GHoYlhXzzk2FYfqxXJORjqXPsbgoHAIu4Bssaj8+YAzIcdy3j9kSt4I8VBpjnn8H/wzQXki75JBZOosQrIeMK018+uR+ZMONBLqDYW/N7EJHLgZt9QXxQNKeZygrD4GN/Dc4gLHGvPQC/RfPuuHcnF0Liaahoo=
- secure: RZ6M6984P885GRoyx9n/WCCWGoFAzYpS8sZkXu3e/HK9oPXfaM2IEHjkq03jIC/FcWn/QMtFjOUBqQU94rnqdivFdFkeZHk1WUQgC0hztH3Qhh9zu2PNIrYUDpVD5dJqBpprWbSwFP8yNsJlP9A2RUubTlZblKHuaBhhiuNN+kU= - secure: RZ6M6984P885GRoyx9n/WCCWGoFAzYpS8sZkXu3e/HK9oPXfaM2IEHjkq03jIC/FcWn/QMtFjOUBqQU94rnqdivFdFkeZHk1WUQgC0hztH3Qhh9zu2PNIrYUDpVD5dJqBpprWbSwFP8yNsJlP9A2RUubTlZblKHuaBhhiuNN+kU=
@ -18,24 +20,29 @@ env:
- secure: mMa7UUt+CQDB52fGM1T3oRL67OzQzRIc+BQCOqUEUhBV7p5g7Y1Hv6NTdVZTvK16x3DsP+5kFNd1v7rsTFw2qzP3hOxIv2BtMPuSzZdnN85Zd/nGwnztxzj/rqw7TMBaYvIdEZZbpRF/K0p0Xr6LJK2s9UkPXPUaLqly7kNi360= - secure: mMa7UUt+CQDB52fGM1T3oRL67OzQzRIc+BQCOqUEUhBV7p5g7Y1Hv6NTdVZTvK16x3DsP+5kFNd1v7rsTFw2qzP3hOxIv2BtMPuSzZdnN85Zd/nGwnztxzj/rqw7TMBaYvIdEZZbpRF/K0p0Xr6LJK2s9UkPXPUaLqly7kNi360=
matrix: matrix:
exclude: exclude:
- env: DJANGO='>=1.7,<1.8' # sort by django version, next to by python version
python: '2.6' # Django 1.7 support Python 2.7, 3.4
- env: DJANGO='>=1.7,<1.8' - env: DJANGO='>=1.7,<1.8'
python: '3.5' python: '3.5'
- env: DJANGO='>=1.7,<1.8' - env: DJANGO='>=1.7,<1.8'
python: '3.6' python: '3.6'
# Django 1.8 support Python 2.7, 3.4, 3.5
- env: DJANGO='>=1.8,<1.9' - env: DJANGO='>=1.8,<1.9'
python: '2.6' python: '3.6'
# Django 1.9 support Python 2.7, 3.4, 3.5
- env: DJANGO='>=1.9,<1.10' - env: DJANGO='>=1.9,<1.10'
python: '2.6' python: '3.6'
- env: DJANGO='>=1.9,<1.10' # Django 1.10 support Python 2.7, 3.4, 3.5
python: '3.3' - env: DJANGO='>=1.10,<1.11'
- env: DJANGO='>=1.9,<1.10' python: '3.6'
python: '3.4' # Django 1.11 support all supported Python interpreter
# Django 2.0 support Python 3.4, 3.5, 3.6
- env: DJANGO='>=2.0,<2.1'
python: '2.7'
install: install:
- pip install -q Django$DJANGO - pip install -q Django$DJANGO
- pip install -r test_requirements.txt - pip install -r test_requirements.txt
- pip install -q -e . - pip install -q -e .
script: script:
- python manage.py test - python manage.py test
sudo: false sudo: false

17
tox.ini
View file

@ -1,9 +1,22 @@
[tox] [tox]
envlist=py27,py34,py35,flake8 # sort by django version, next by python version
envlist=
flake8
py{27,34}-django17
py{34,35}-django18
py{27,34,35}-django19
py{27,34,35}-django110
py{27,34,35,36}-django111
py{34,35,36}-django20
[testenv] [testenv]
deps= deps=
django django17: django>=1.7,<1.8
django18: django>=1.8,<1.9
django19: django>=1.9,<1.10
django110: django>=1.10,<1.11
django111: django>=1.11,<2.0
django20: django>=2.0,<2.1
-r{toxinidir}/test_requirements.txt -r{toxinidir}/test_requirements.txt
sitepackages=False sitepackages=False
commands= commands=