-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtox.ini
47 lines (40 loc) · 999 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
[tox]
envlist = copying,{py37,py38,py39,py310}-{lint,tests,color,cli}
skip_missing_interpreters = True
[testenv]
whitelist_externals =
cli: {[testenv:cli]whitelist_externals}
deps=
iotlabcli
-rtests_utils/test-requirements.txt
commands=
tests: {[testenv:tests]commands}
lint: {[testenv:lint]commands}
cli: {[testenv:cli]commands}
color: {[testenv:color]commands}
coverage: {[testenv:coverage]commands}
[testenv:tests]
commands=
pytest
[testenv:color]
commands=
pip install .[color_serial]
[testenv:lint]
commands=
pylint --rcfile=setup.cfg iotlabaggregator setup.py
flake8
[testenv:copying]
whitelist_externals =
/bin/bash
/usr/bin/bash
commands=
bash tests_utils/check_license.sh
[testenv:cli]
whitelist_externals =
/bin/bash
/usr/bin/bash
commands=
bash -exc "for i in *_aggregator; do $i --help >/dev/null; done"
[testenv:coverage]
passenv = CI TRAVIS TRAVIS_*
commands = codecov -e TOXENV