forked from iot-lab/cli-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
41 lines (36 loc) · 1.09 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
[tox]
# python3.1 issues with 2to3 for dependencies install
envlist = copying,cli,py26,py27,py32,py33,py34
[tox:jenkins]
skip_missing_interpreters = True
[testenv]
deps=
-rtests_utils/test-requirements.txt
py26,py32: -rtests_utils/pylint-python-2.6_3.2.txt
py32: -rtests_utils/coverage-python-3.2.txt
commands=
python setup.py nosetests
python setup.py lint
python setup.py pep8
flake8
[testenv:copying]
whitelist_externals = /bin/bash
commands=
bash tests_utils/check_license.sh
[testenv:cli]
whitelist_externals = /bin/bash
commands=
bash -exc "for i in *-cli; do $i --help >/dev/null; done"
[testenv:integration]
# Use develop to get 'iotlabcli' coverage output
# Either it would be in .tox/integration/..../site-packages/
usedevelop=True
deps=
-rtests_utils/test-requirements.txt
passenv = IOTLAB_TEST_PASSWORD
commands=
pip install --upgrade -e.[secure] # Install iotlabcli[secure] dependencies
coverage run --source iotlabcli --omit='iotlabcli/tests/*' iotlabcli/integration/test_integration.py {posargs}
coverage report
coverage html
coverage xml