Skip to content

Commit

Permalink
add brigade.json for brigade-utils/KindJob
Browse files Browse the repository at this point in the history
Signed-off-by: Vaughn Dice <vadice@microsoft.com>
  • Loading branch information
vdice committed Aug 5, 2019
1 parent fa5147c commit 98bd045
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
17 changes: 8 additions & 9 deletions brigade.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// Be careful when editing!
// ============================================================================
const { events, Job, Group } = require("brigadier");
const { Check } = require("@brigadecore/brigade-utils");
// TODO: update to official @brigadcorre/brigade once released with KindJob
const { Check, KindJob } = require("brigade-utils-test");

const projectName = "brigade";
const projectOrg = "brigadecore";
Expand Down Expand Up @@ -54,16 +55,14 @@ function e2e() {
// Create a new job to run kind-based e2e tests
// Spec'd image wraps docker:stable-dind
// with make, bash,, git, kubectl, etc.
var job = new Job("test-e2e", "quay.io/vdice/go-dind:v0.1.0");
job.privileged = true;

job.tasks = [
"dockerd-entrypoint.sh &",
"sleep 20",
let kind = new KindJob("test-e2e");
kind.tasks.push(
"apk add --update --no-cache bash",
"cd /src",
"make e2e"
];
return job;
);

return kind;
}

function buildAndPublishImages(project, version) {
Expand Down
2 changes: 1 addition & 1 deletion brigade.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": {
"@brigadecore/brigade-utils": "0.2.0"
"brigade-utils-test": "0.0.5"
}
}

0 comments on commit 98bd045

Please sign in to comment.