forked from kyhau/ssllabs-scan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
47 lines (43 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
43
44
45
46
47
[tox]
envlist = py37,py38,py39,py310
skip_missing_interpreters = True
[testenv]
basepython =
py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
install_command =
python -m pip install {opts} {packages} -cconstraints.txt
deps =
-rrequirements-test.txt
pip_pre = True
passenv =
CODECOV_TOKEN # codecov
TOXENV CI TRAVIS TRAVIS_* # travis and codecov
commands =
pip check
python -m pytest --junit-xml "junit-{envname}.xml"
[testenv:py39]
commands =
pip check
python -m pytest --cov . --cov-config=tox.ini --cov-report xml:coverage-{envname}.xml --junit-xml "junit-{envname}.xml" ssllabsscan
python setup.py bdist_wheel
python -c "import shutil; shutil.rmtree('build')"
codecov
flake8 --exit-zero --config ./tox.ini --output-file flake8.log ssllabsscan
setenv =
COVERAGE_FILE=.coverage.py3
# Inline pytest config
[pytest]
# exclude directories
norecursedirs = env .tox
# fail on XPASS
xfail_strict = true
# Inline coverage config
[run]
omit =
setup.py
*__init__.py
*/tests/*
.tox*