aboutsummaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-06-08 09:19:25 +1200
committerAldo Cortesi <aldo@nullcube.com>2016-06-08 09:19:25 +1200
commitdb11fe0087776c2bf5d95f5aeb751c6c35d67f4b (patch)
tree1aab054770dee86506a1897093dde2d35489a0de /tox.ini
parentba466dbb358eba223c49fbe602a667aa1a3c7459 (diff)
parenteb680e7764ec902518bc66e4d5c7667326ed5811 (diff)
downloadmitmproxy-db11fe0087776c2bf5d95f5aeb751c6c35d67f4b.tar.gz
mitmproxy-db11fe0087776c2bf5d95f5aeb751c6c35d67f4b.tar.bz2
mitmproxy-db11fe0087776c2bf5d95f5aeb751c6c35d67f4b.zip
Merge branch 'master' into beautiful-json
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini28
1 files changed, 22 insertions, 6 deletions
diff --git a/tox.ini b/tox.ini
index a1e6a816..b75f536f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,15 +1,31 @@
[tox]
-envlist = py27, py35, lint
+envlist = py27, py35, docs, lint
[testenv]
-deps = -rrequirements.txt
+deps =
+ -rrequirements.txt
+ codecov>=2.0.5
+passenv = CI TRAVIS_BUILD_ID TRAVIS TRAVIS_BRANCH TRAVIS_JOB_NUMBER TRAVIS_PULL_REQUEST TRAVIS_JOB_ID TRAVIS_REPO_SLUG TRAVIS_COMMIT
[testenv:py27]
-commands = py.test -n 8 --timeout 60 ./test
+commands =
+ py.test --cov netlib --cov mitmproxy --cov pathod --color=yes --timeout 60 ./test
+ codecov -e TOXENV
[testenv:py35]
-commands = py.test -n 8 --timeout 60 test/netlib test/mitmproxy/script test/pathod/test_utils.py test/pathod/test_log.py test/pathod/test_language_generators.py test/pathod/test_language_writer.py test/pathod/test_language_base.py test/pathod/test_language_http.py
+# remove bash & pipe & grep hack after cryptography ships with openssl 1.1.0
+whitelist_externals = bash
+commands =
+ bash -c 'py.test --cov netlib --cov mitmproxy --cov pathod --color=yes --timeout 60 test/netlib test/mitmproxy/script test/pathod/test_utils.py test/pathod/test_log.py test/pathod/test_language_generators.py test/pathod/test_language_writer.py test/pathod/test_language_base.py test/pathod/test_language_http.py test/pathod/test_language_websocket.py 2>&1 | grep -v Cryptography_locking_cb'
+ codecov -e TOXENV
+
+[testenv:docs]
+basepython = python2.7
+whitelist_externals = make
+changedir = docs
+setenv = SPHINXOPTS="-W"
+commands = make -e html
[testenv:lint]
-deps = flake8
-commands = flake8 --count mitmproxy netlib pathod examples test
+deps = flake8>=2.5.4, <3
+commands = flake8 --jobs 8 --count mitmproxy netlib pathod examples test