forked from Virtualstock/behave-testrail-reporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
42 lines (35 loc) · 1.07 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
# 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]
envlist = py{27,34,35,36}, lint, coverage
skip_missing_interpreters = True
[testenv]
passenv = CODACY_PROJECT_TOKEN CIRCLE_SHA1 CIRCLE_WORKING_DIRECTORY
basepython =
py27: python2.7
py34: python3.4
py35: python3.5
py36: python3.6
deps =
commands = python setup.py test
[testenv:coverage]
basepython = python3.6
deps =
commands =
pip install --upgrade pip
pip install pipenv
pipenv install --dev
pipenv run coverage run --source=behave_testrail_reporter setup.py test
pipenv run coverage xml
pipenv run python-codacy-coverage --report coverage.xml --commit {env:CIRCLE_SHA1:} --directory {env:CIRCLE_WORKING_DIRECTORY:}
[testenv:lint]
basepython = python3.6
deps =
commands =
pip install --upgrade pip
pip install pipenv black
pipenv run black --check --diff .
[flake8]
max-line-length = 120