-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #161 from tysonclugg/py3-with-tests
Python 3 (with tests)
- Loading branch information
Showing
9 changed files
with
100 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Container-based builds used if "sudo: false" --> fast boot (1-6s) | ||
# https://docs.travis-ci.com/user/ci-environment/ | ||
sudo: false | ||
dist: trusty | ||
|
||
language: python | ||
python: | ||
- "2.7" | ||
- "3.4" | ||
- "3.5" | ||
|
||
env: | ||
matrix: | ||
- DJANGO="1.8" | ||
- DJANGO="1.9" | ||
- DJANGO="1.10" | ||
- DJANGO="1.11" | ||
|
||
matrix: | ||
include: | ||
# The Django 1.8 series is the last to support Python 3.2 and 3.3. | ||
- python: "3.3" | ||
env: DJANGO="1.8" | ||
# Django 1.11 is the first release to support Python 3.6. | ||
- python: "3.6" | ||
env: DJANGO="1.11" | ||
|
||
services: | ||
- redis-server | ||
|
||
install: | ||
- pip install tox | ||
|
||
script: | ||
- tox -vvvv -e $( echo $TRAVIS_PYTHON_VERSION | sed -e 's/^2\./py2/' -e 's/^3\./py3/' )-django${DJANGO} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,47 @@ | ||
# Tox (http://tox.testrun.org/) is a tool for running tests | ||
# in multiple virtualenvs. This configuration file will run the | ||
# test suite on all supported python versions. To use it, "pip install tox" | ||
# and then run "tox" from this directory. | ||
|
||
|
||
[tox] | ||
# Python 3 isn't supported yet | ||
# require tox>=2.7 or refuse to run the tests. | ||
minversion=2.7 | ||
|
||
# return success even if some of the specified environments are missing | ||
skip_missing_interpreters=True | ||
|
||
# The Django 1.8 series is the last to support Python 3.2 and 3.3. | ||
# Django 1.11 is the first release to support Python 3.6. | ||
# Due to the end of upstream support for Python 3.2 in February 2016, we won’t | ||
# test Django 1.8.x on Python 3.2 after the end of 2016. | ||
envlist = | ||
py27-django{18,19,110,111} | ||
# py32-django{18} | ||
# py33-django{18} | ||
# py{34,35}-django{19,110,111} | ||
# py{36}-django{111} | ||
py27-django{1.8,1.9,1.10,1.11} | ||
py33-django{1.8} | ||
py34-django{1.8,1.9,1.10,1.11} | ||
py35-django{1.8,1.9,1.10,1.11} | ||
py36-django{1.11} | ||
pypy-django{1.8,1.9,1.10,1.11} | ||
|
||
[testenv] | ||
commands = python setup.py test | ||
recreate=True | ||
usedevelop=False | ||
passenv= | ||
BUILD_NUMBER | ||
BUILD_URL | ||
XDG_CACHE_HOME | ||
|
||
# continue running commands even if previous commands have failed (ie: always produce coverage report) | ||
ignore_errors = True | ||
|
||
commands = | ||
coverage erase | ||
coverage run --branch --source={toxinidir}/experiments setup.py test | ||
coverage report | ||
|
||
deps = | ||
django18: Django>=1.8,<1.9 | ||
django19: Django>=1.9,<1.10 | ||
django110: Django>=1.10,<1.11 | ||
django111: Django>=1.11,<2.0 | ||
coverage | ||
django1.8: Django>=1.8,<1.9 | ||
django1.9: Django>=1.9,<1.10 | ||
django1.10: Django>=1.10,<1.11 | ||
django1.11: Django>=1.11,<2.0 |