forked from mirror/django-mailbox
Use tox in TravisCI (DRY!)
This commit is contained in:
parent
7a26838b3f
commit
c807e733b8
2 changed files with 32 additions and 37 deletions
66
.travis.yml
66
.travis.yml
|
|
@ -1,48 +1,42 @@
|
|||
language: python
|
||||
python:
|
||||
- '2.7'
|
||||
- '3.4'
|
||||
- '3.5'
|
||||
- '3.6'
|
||||
python: '3.5'
|
||||
|
||||
env:
|
||||
matrix:
|
||||
- DJANGO='>=1.7,<1.8'
|
||||
- DJANGO='>=1.8,<1.9'
|
||||
- DJANGO='>=1.9,<1.10'
|
||||
- DJANGO='>=1.10,<1.11'
|
||||
- DJANGO='>=1.11,<2.0'
|
||||
- DJANGO='>=2.0,<2.1'
|
||||
# sort by django version, next to by python version
|
||||
# Django 1.7 support Python 2.7, 3.4
|
||||
- TOX_ENV=django17-py27
|
||||
- TOX_ENV=django17-py34
|
||||
# Django 1.8 support Python 2.7, 3.4, 3.5
|
||||
- TOX_ENV=django18-py27
|
||||
- TOX_ENV=django18-py34
|
||||
- TOX_ENV=django18-py35
|
||||
# Django 1.9 support Python 2.7, 3.4, 3.5
|
||||
- TOX_ENV=django19-py27
|
||||
- TOX_ENV=django19-py34
|
||||
- TOX_ENV=django19-py35
|
||||
# Django 1.10 support Python 2.7, 3.4, 3.5
|
||||
- TOX_ENV=django110-py27
|
||||
- TOX_ENV=django110-py34
|
||||
- TOX_ENV=django110-py35
|
||||
# Django 1.11 support all supported Python interpreter
|
||||
# Django 2.0 support Python 3.4, 3.5, 3.6
|
||||
- TOX_ENV=django111-py34
|
||||
- TOX_ENV=django111-py35
|
||||
- TOX_ENV=django111-py36
|
||||
|
||||
global:
|
||||
- secure: aswHU7pQroGM+GHoYlhXzzk2FYfqxXJORjqXPsbgoHAIu4Bssaj8+YAzIcdy3j9kSt4I8VBpjnn8H/wzQXki75JBZOosQrIeMK018+uR+ZMONBLqDYW/N7EJHLgZt9QXxQNKeZygrD4GN/Dc4gLHGvPQC/RfPuuHcnF0Liaahoo=
|
||||
- secure: RZ6M6984P885GRoyx9n/WCCWGoFAzYpS8sZkXu3e/HK9oPXfaM2IEHjkq03jIC/FcWn/QMtFjOUBqQU94rnqdivFdFkeZHk1WUQgC0hztH3Qhh9zu2PNIrYUDpVD5dJqBpprWbSwFP8yNsJlP9A2RUubTlZblKHuaBhhiuNN+kU=
|
||||
- secure: gsAAl/RaTodLJDHWOuHZWtooa9/psyXBONF7ElZOTki3WvH+KugtjuXn3pXBGbUhvGqd5qfgPqX7WQOFP9KTdkXBbkU20rCHLh3SV8V2vRkGFAFiGPBTFfSA83zFNMvmgEnTww4OzYsfs4wHTEyxBeQkggnB5bXEvqkFVrHBjuQ=
|
||||
- secure: mMa7UUt+CQDB52fGM1T3oRL67OzQzRIc+BQCOqUEUhBV7p5g7Y1Hv6NTdVZTvK16x3DsP+5kFNd1v7rsTFw2qzP3hOxIv2BtMPuSzZdnN85Zd/nGwnztxzj/rqw7TMBaYvIdEZZbpRF/K0p0Xr6LJK2s9UkPXPUaLqly7kNi360=
|
||||
matrix:
|
||||
exclude:
|
||||
# sort by django version, next to by python version
|
||||
# Django 1.7 support Python 2.7, 3.4
|
||||
- env: DJANGO='>=1.7,<1.8'
|
||||
python: '3.5'
|
||||
- env: DJANGO='>=1.7,<1.8'
|
||||
python: '3.6'
|
||||
# Django 1.8 support Python 2.7, 3.4, 3.5
|
||||
- env: DJANGO='>=1.8,<1.9'
|
||||
python: '3.6'
|
||||
# Django 1.9 support Python 2.7, 3.4, 3.5
|
||||
- env: DJANGO='>=1.9,<1.10'
|
||||
python: '3.6'
|
||||
# Django 1.10 support Python 2.7, 3.4, 3.5
|
||||
- env: DJANGO='>=1.10,<1.11'
|
||||
python: '3.6'
|
||||
# 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:
|
||||
- pip install -q Django$DJANGO
|
||||
- pip install -r test_requirements.txt
|
||||
- pip install -q -e .
|
||||
- pip install tox
|
||||
|
||||
script:
|
||||
- python manage.py test
|
||||
# Update Python 3.6 path - see bug https://github.com/travis-ci/travis-ci/issues/4990
|
||||
- if [[ $TOX_ENV = *"py36"* ]]; then echo "Activated PY3.6"; source ~/virtualenv/python3.6/bin/activate; pip install tox; fi
|
||||
- tox -e $TOX_ENV
|
||||
|
||||
sudo: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue