summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorMichael Merickel <github@m.merickel.org>2018-10-15 09:03:53 -0500
committerGitHub <noreply@github.com>2018-10-15 09:03:53 -0500
commit81576ee51564c49d5ff3c1c07f214f22a8438231 (patch)
tree5b3fe0b39a0fc33d545733d821738845909f638c /tox.ini
parent433efe06191a7007ca8c5bf8fafee5c7c1439ebb (diff)
parent17e3abf320f6d9cd90f7e5a0352280c2fef584af (diff)
downloadpyramid-81576ee51564c49d5ff3c1c07f214f22a8438231.tar.gz
pyramid-81576ee51564c49d5ff3c1c07f214f22a8438231.tar.bz2
pyramid-81576ee51564c49d5ff3c1c07f214f22a8438231.zip
Merge pull request #3387 from mmerickel/src-folder-refactor
refactor pyramid tests into a tests folder and package into a src folder
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini26
1 files changed, 21 insertions, 5 deletions
diff --git a/tox.ini b/tox.ini
index fac659258..6daa244ca 100644
--- a/tox.ini
+++ b/tox.ini
@@ -62,7 +62,7 @@ commands =
deps = virtualenv
[testenv:lint]
-skip_install = True
+skip_install = true
basepython = python3.5
commands =
flake8 pyramid/
@@ -95,7 +95,7 @@ extras =
# combination of versions of coverage and nosexcover that i can find.
[testenv:py2-cover]
commands =
- coverage run --source=pyramid {envbindir}/nosetests
+ coverage run {envbindir}/nosetests
coverage xml -o coverage-py2.xml
setenv =
COVERAGE_FILE=.coverage.py2
@@ -104,7 +104,7 @@ extras =
[testenv:py3-cover]
commands =
- coverage run --source=pyramid {envbindir}/nosetests
+ coverage run {envbindir}/nosetests
coverage xml -o coverage-py3.xml
setenv =
COVERAGE_FILE=.coverage.py3
@@ -112,14 +112,30 @@ extras =
testing
[testenv:coverage]
-skip_install = True
+skip_install = true
basepython = python3.5
commands =
coverage erase
coverage combine
coverage xml
- coverage report --show-missing --fail-under=100
+ coverage report --fail-under=100
deps =
coverage
setenv =
COVERAGE_FILE=.coverage
+
+[testenv:build]
+skip_install = true
+basepython = python3.6
+commands =
+ # clean up build/ and dist/ folders
+ python -c 'import shutil; shutil.rmtree("dist", ignore_errors=True)'
+ python setup.py clean --all
+ # build sdist
+ python setup.py sdist --dist-dir {toxinidir}/dist
+ # build wheel from sdist
+ pip wheel -v --no-deps --no-index --wheel-dir {toxinidir}/dist --find-links {toxinidir}/dist pyramid
+
+deps =
+ setuptools
+ wheel