-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test for all supported versions (#21)
* Add tox * Add coverage configuration * Linting * Define supported versions * Fix travis notification token
- Loading branch information
1 parent
4e7efe2
commit 39e32d4
Showing
12 changed files
with
148 additions
and
25 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,29 @@ | ||
# .coveragerc to control coverage.py | ||
[run] | ||
branch = True | ||
|
||
source = ./wagtailmodelchoosers | ||
|
||
[report] | ||
# Regexes for lines to exclude from consideration | ||
exclude_lines = | ||
# Have to re-enable the standard pragma | ||
pragma: no cover | ||
|
||
# Don't complain about missing debug-only code: | ||
def __repr__ | ||
if self\.debug | ||
|
||
# Don't complain if tests don't hit defensive assertion code: | ||
raise AssertionError | ||
raise NotImplementedError | ||
return NotImplemented | ||
|
||
# Don't complain if non-runnable code isn't run: | ||
if 0: | ||
if __name__ == .__main__.: | ||
|
||
ignore_errors = True | ||
|
||
[html] | ||
directory = coverage_html_report |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Documentation | ||
|
||
## Browser support | ||
|
||
We align our browser support targets with that of Wagtail. Have a look at the [official documentation](http://docs.wagtail.io/en/latest/contributing/developing.html). | ||
|
||
## Python/Django/Wagtail support | ||
|
||
Python versions as defined in `setup.py` classifiers. | ||
|
||
Wagtail versions as [supported](http://docs.wagtail.io/en/latest/releases/upgrading.html) by Wagtail (LTS, current and current-1). | ||
|
||
Django/Wagtail combinations as [supported](http://docs.wagtail.io/en/latest/releases/upgrading.html#compatible-django-python-versions) by Wagtail (for the Wagtail versions as defined above). | ||
|
||
### Which version combinations to include in Travis test matrix? | ||
|
||
In order to keep for CI build time from growing out of control, not all Python/Django/Wagtail combinations will be tested. | ||
|
||
Test as follow: | ||
- All supported Django/Wagtail combinations with the latest supported Python version of the `3.x` series. | ||
- The latest supported Django/Wagtail combination for the remaining Python versions. |
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
Empty file.
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,32 @@ | ||
# 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] | ||
skipsdist = True | ||
usedevelop = True | ||
envlist = | ||
py{34,35,36}-dj{111}-wt{112,113} | ||
# py{34,35,36}-dj{111,2}-wt{2b} | ||
|
||
[testenv] | ||
install_command = pip install -e ".[testing]" -U {opts} {packages} | ||
whitelist_externals = | ||
make | ||
|
||
basepython = | ||
py34: python3.4 | ||
py35: python3.5 | ||
py36: python3.6 | ||
|
||
deps = | ||
dj111: Django>=1.11,<2.0 | ||
# dj2: Django>=2.0,<2.1 | ||
wt112: wagtail>=1.12,<1.13 | ||
wt113: wagtail>=1.13,<1.14 | ||
# wt2b: wagtail==2.0b1 | ||
|
||
commands = | ||
make lint | ||
make test-coverage |
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