forked from playandbuild/scrapy-history-middleware
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
29 lines (24 loc) · 1022 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# tox (https://tox.readthedocs.io/) 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]
# Choose your Python versions. They have to be available
# on the system the tests are run on.
envlist = py27, py36
# Tell tox to not require a setup.py file
skipsdist = True
[testenv]
# use tools not contained in virtualenv
passenv = *
whitelist_externals = mkdir
deps =
-rdev-requirements.txt
-rrequirements.txt
commands=
mkdir -p {env:CIRCLE_TEST_REPORTS:}/tests/{envname}/nosetests
mkdir -p {env:CIRCLE_TEST_REPORTS:}/tests/{envname}/coverage
nosetests {posargs:-v --with-timer \
--with-xunit --xunit-file={env:CIRCLE_TEST_REPORTS:}/tests/{envname}/nosetests/tests.xml \
--with-coverage --cover-min-percentage=37 --cover-html --cover-erase --cover-package=history \
--cover-html-dir={env:CIRCLE_TEST_REPORTS:}/tests/{envname}/coverage/history}