-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
275 additions
and
76 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 |
---|---|---|
|
@@ -15,6 +15,7 @@ lib/ | |
local/ | ||
parts/ | ||
src/* | ||
/.tox/ | ||
test.plone_addon/ | ||
var/ | ||
# files | ||
|
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 |
---|---|---|
@@ -0,0 +1,188 @@ | ||
[tox] | ||
envlist = | ||
py{27}-Plone{43,50,51}, | ||
py{27,36,37}-Plone{52}, | ||
build_instance, | ||
#docs, | ||
code-analysis, | ||
lint-py27, | ||
lint-py36, | ||
coverage-report, | ||
|
||
skip_missing_interpreters = False | ||
|
||
[testenv] | ||
skip_install = true | ||
|
||
extras = | ||
develop | ||
test | ||
|
||
commands = | ||
{envbindir}/buildout -c {toxinidir}/{env:version_file} buildout:directory={envdir} buildout:develop={toxinidir} bootstrap | ||
{envbindir}/buildout -c {toxinidir}/{env:version_file} buildout:directory={envdir} buildout:develop={toxinidir} annotate | ||
{envbindir}/buildout -c {toxinidir}/{env:version_file} buildout:directory={envdir} buildout:develop={toxinidir} install test robot | ||
coverage run {envbindir}/test -v1 --auto-color {posargs} | ||
# coverage run {envbindir}/test -v --all -t robot {posargs} | ||
|
||
setenv = | ||
COVERAGE_FILE=.coverage.{envname} | ||
version_file=version_plone51.cfg | ||
Plone43: version_file=version_plone43.cfg | ||
Plone50: version_file=version_plone50.cfg | ||
Plone51: version_file=version_plone51.cfg | ||
Plone52: version_file=version_plone52.cfg | ||
|
||
deps = | ||
setuptools==40.2.0 | ||
zc.buildout==2.12.2 | ||
coverage | ||
|
||
[testenv:coverage-report] | ||
skip_install = true | ||
|
||
deps = | ||
coverage | ||
|
||
setenv = | ||
COVERAGE_FILE=.coverage | ||
|
||
commands = | ||
coverage erase | ||
coverage combine | ||
coverage html | ||
coverage xml | ||
coverage report | ||
|
||
[testenv:code-analysis] | ||
skip_install = true | ||
|
||
commands = | ||
{envbindir}/buildout -c {toxinidir}/buildout.cfg buildout:directory={envdir} buildout:develop={toxinidir} bootstrap | ||
{envbindir}/buildout -c {toxinidir}/buildout.cfg buildout:directory={envdir} buildout:develop={toxinidir} install code-analysis | ||
{envbindir}/code-analysis | ||
|
||
deps = | ||
{[testenv]deps} | ||
|
||
[lint] | ||
skip_install = true | ||
|
||
deps = | ||
isort | ||
flake8 | ||
# helper to generate HTML reports: | ||
flake8-html | ||
# Useful flake8 plugins that are Python and Plone specific: | ||
flake8-coding | ||
flake8-debugger | ||
flake8-deprecated | ||
flake8-print | ||
#flake8-pytest | ||
flake8-todo | ||
flake8-isort | ||
mccabe | ||
# Potential flake8 plugins that should be used: # TBD | ||
#flake8-blind-except | ||
#flake8-commas | ||
#flake8-docstrings | ||
#flake8-mypy | ||
#flake8-pep3101 | ||
#flake8-plone-hasattr | ||
#flake8-string-format | ||
#flake8_strict | ||
#flake8-quotes | ||
#flake8-polyfill | ||
|
||
commands = | ||
mkdir -p {toxinidir}/reports/flake8 | ||
- flake8 --format=html --htmldir={toxinidir}/reports/flake8 --doctests src setup.py | ||
flake8 --doctests src tests setup.py | ||
isort --check-only --recursive {toxinidir}/src | ||
|
||
whitelist_externals = | ||
mkdir | ||
|
||
[testenv:isort-apply] | ||
skip_install = true | ||
|
||
deps = | ||
isort | ||
|
||
commands = | ||
isort --apply --recursive {toxinidir}/src | ||
|
||
[testenv:lint-py27] | ||
basepython = python2.7 | ||
skip_install = true | ||
deps = {[lint]deps} | ||
commands = {[lint]commands} | ||
whitelist_externals = {[lint]whitelist_externals} | ||
|
||
[testenv:lint-py34] | ||
basepython = python3.4 | ||
skip_install = true | ||
deps = {[lint]deps} | ||
commands = {[lint]commands} | ||
whitelist_externals = {[lint]whitelist_externals} | ||
|
||
[testenv:lint-py35] | ||
basepython = python3.5 | ||
skip_install = true | ||
deps = {[lint]deps} | ||
commands = {[lint]commands} | ||
whitelist_externals = {[lint]whitelist_externals} | ||
|
||
[testenv:lint-py36] | ||
basepython = python3.6 | ||
skip_install = true | ||
deps = {[lint]deps} | ||
commands = {[lint]commands} | ||
whitelist_externals = {[lint]whitelist_externals} | ||
|
||
[testenv:lint-py37] | ||
basepython = python3.7 | ||
skip_install = true | ||
deps = {[lint]deps} | ||
commands = {[lint]commands} | ||
whitelist_externals = {[lint]whitelist_externals} | ||
|
||
[testenv:docs] | ||
skip_install = true | ||
|
||
deps = | ||
Sphinx | ||
|
||
commands = | ||
sphinx-build -b html -d _build/docs/doctrees docs _build/docs/html | ||
|
||
[testenv:update_translation] | ||
skip_install = true | ||
|
||
deps = | ||
i18ndude | ||
|
||
commands = | ||
i18ndude find-untranslated | ||
i18ndude rebuild-pot | ||
i18ndude merge | ||
i18ndude sync | ||
i18ndude list | ||
|
||
[testenv:release] | ||
skip_install = true | ||
|
||
deps = | ||
zest.releaser[recommended] | ||
|
||
commands = | ||
fullrelease --no-input -v | ||
|
||
[testenv:build_instance] | ||
basepython = python2.7 | ||
skip_install = true | ||
|
||
commands = | ||
{envbindir}/buildout -c {toxinidir}/{env:version_file} buildout:directory={toxinidir} bootstrap | ||
{envbindir}/buildout -c {toxinidir}/{env:version_file} buildout:directory={toxinidir} annotate | ||
{envbindir}/buildout -c {toxinidir}/{env:version_file} buildout:directory={toxinidir} |
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,10 @@ | ||
[buildout] | ||
|
||
extends = | ||
https://raw.github.com/collective/buildout.plonetest/master/test-4.3.x.cfg | ||
http://dist.plone.org/release/4.3-latest/versions.cfg | ||
buildout.cfg | ||
|
||
update-versions-file = version_plone43.cfg | ||
|
||
[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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[buildout] | ||
|
||
extends = | ||
https://raw.github.com/collective/buildout.plonetest/master/test-5.0.x.cfg | ||
http://dist.plone.org/release/5.0-latest/versions.cfg | ||
buildout.cfg | ||
|
||
update-versions-file = version_plone50.cfg | ||
|
||
[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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[buildout] | ||
|
||
extends = | ||
https://raw.github.com/collective/buildout.plonetest/master/test-5.1.x.cfg | ||
http://dist.plone.org/release/5.1-latest/versions.cfg | ||
buildout.cfg | ||
|
||
update-versions-file = version_plone51.cfg | ||
|
||
[versions] |
Oops, something went wrong.