From 4023f592ff7a4afb24d667c720a4b21b4c78b6a4 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Mon, 13 Nov 2017 14:56:54 -0800 Subject: [PATCH] Test pycodestyle with brigade --- brigade.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 brigade.js diff --git a/brigade.js b/brigade.js new file mode 100644 index 0000000..c7767ec --- /dev/null +++ b/brigade.js @@ -0,0 +1,11 @@ +const { events, Job } = require("brigadier") + +events.on("pull_request", () => { + var job = new Job("pycodestyle", "python:alpine") + job.tasks = [ + "pip install pycodestyle", + "cd /src", + "pycodestyle demoapp" + ] + job.run() +})