-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathtox.ini
70 lines (53 loc) · 1.65 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# tox.ini , put in same dir as setup.py
[tox]
skip_missing_interpreters=True
envlist =
# based on ros distro with python2 base
py27-{indigo,kinetic,latest},
# Proper py3 version for LTS releases
#py34-indigo,
#py35-kinetic,
# based on ros distro with python3 base
#py36-{latest}
#, pypy
#, pypy3
[travis]
python =
# we test every current ROS1 distro on python 2.7 (official python support for ROS1)
2.7 : py27
# specific old python supported natively on ubuntu/ROS LTS distro
#3.4 : py34
#3.5 : py35
# we test every current ROS1 distro on latest python (to ensure support from latest python)
#3.6 : py36
# not tested yet
#pypy = pypy
#pypy3 = pypy3
# We depend on travis matrix
[travis:env]
ROS_DISTRO =
kinetic: kinetic
indigo: indigo
latest: latest
[testenv]
setenv =
# prevent tox to create a bunch of useless bytecode files in tests/
PYTHONDONTWRITEBYTECODE=1
# Dependencies matching the version in each ROS distro
deps =
indigo: -rrequirements/ROS/indigo.txt
indigo: -rrequirements/tests.txt
indigo: -rrequirements/dev.txt
kinetic: -rrequirements/ROS/kinetic.txt
kinetic: -rrequirements/tests.txt
kinetic: -rrequirements/dev.txt
latest: -rrequirements/tests.txt
latest: -rrequirements/dev.txt
# to always force recreation and avoid unexpected side effects
recreate=True
changedir = tests
commands=
# we want to make sure python finds the installed package in tox env
# and doesn't confuse with pyc generated during dev (which happens if we use self test feature here)
python -m pytest --basetemp={envtmpdir} test_rostful {posargs}
# Note : -s here might break your terminal...