This add-on will be adapted from https://stackoverflow.com/a/33012308/1539918 and will allow to conditionally execute a command based on the value of env. variable.
Motivation
Perform conditional execution of command with tox. See NeurodataWithoutBorders/pynwb#245
Usage
Usage:
python conditional_exec.py ENVVAR1==ENVVALUE1 ... -- command arg1 ...
Example of use:
ci_addons --install ../addons
python ../addons/anyci/conditional_exec.py DO_COVERAGE==true -- coverage run --source src test.py --pynwb
python ../addons/anyci/conditional_exec.py DO_COVERAGE==true -- codecov -F pynwb
This add-on will be adapted from https://stackoverflow.com/a/33012308/1539918 and will allow to conditionally execute a command based on the value of env. variable.
Motivation
Perform conditional execution of command with tox. See NeurodataWithoutBorders/pynwb#245
Usage
Example of use: