forked from dolph/rtox
-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
42 lines (40 loc) · 1.11 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]
skipsdist = True
envlist = lint,{py27,py34,py35,py36}
skip_missing_interpreters = true
package = rtox
[testenv]
changedir = {toxinidir}
sitepackages = True
whitelist_externals =
bash
cat
echo
flake8
ls
mkdir
pwd
true
commands =
bash -c '>&2 echo "this line should be on stderr"'
pip install -q 'pip>=10.0.1'
# workaround for https://github.com/pypa/pip/issues/3784#issuecomment-377779356
python -c "from distutils.sysconfig import get_python_lib; import os; f = os.path.join(get_python_lib(), '{[tox]package}.egg-link'); os.unlink(f) if os.path.isfile(f) else 0"
pip install -q -e {toxinidir}
bash -c "cd {toxinidir}/tests/untox && cp -f tox.ini.orig tox.ini && untox && diff -B tox.ini tox.ini.clean"
# rtox prevents recusivity by defining/detection RTOX=1, returning 0
rtox -e {envname}
setenv =
PIP_LOG={toxworkdir}/{envname}/log/pip.log
passenv =
PYENV_VERSION
PY_*
RTOX*
SSH_AUTH_SOCK
XDG_CACHE_HOME
http_proxy
https_proxy
[testenv:lint]
commands =
pip install -q -r{toxinidir}/test-requirements.txt
python -m flake8