python - Environment variable -
i have tox.ini
file this:
[tox] envlist = {py27,py34} [testenv] setenv = pythondontwritebytecode=1 deps = -r{toxinidir}/requirements-test.txt commands = nosetests -v --stop --with-coverage --cover-package=project
so, need pass tox env environment variable so. variable private , changes according environment.
how it?
i found solution! tox 2.0 has settings called passenv
a list of wildcard environment variable names shall copied tox invocation environment test environment. if specified environment variable doesn’t exist in tox invocation environment ignored. can use * , ? match multiple environment variables 1 name. note path , pip_index_url variables unconditionally passed down , on windows systemroot, pathext, temp , tmp passed down whereas on unix tmpdir passed down. can override these variables setenv option.
Comments
Post a Comment