Skip to content

Add "anyci/conditional_exec.py" addon  #59

@jcfr

Description

@jcfr

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions