Created
July 16, 2019 12:06
-
-
Save sochotnicky/a7315bdab5bd0e797a22d2b9d35bc62f to your computer and use it in GitHub Desktop.
tox_command.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import yaml | |
| from buildbot.plugins import steps, util | |
| class ToxCommand(steps.ShellCommand): | |
| def start(self): | |
| if self.getProperty("tox-env"): | |
| self.setCommand(["tox", "-e", self.getProperty("tox-env")]) | |
| else: | |
| self.setCommand(["tox"]) # succes if no tox checks defined | |
| super().start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment