Skip to content

Instantly share code, notes, and snippets.

@sochotnicky
Created July 16, 2019 12:06
Show Gist options
  • Select an option

  • Save sochotnicky/a7315bdab5bd0e797a22d2b9d35bc62f to your computer and use it in GitHub Desktop.

Select an option

Save sochotnicky/a7315bdab5bd0e797a22d2b9d35bc62f to your computer and use it in GitHub Desktop.
tox_command.py
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