Skip to content

Commit

Permalink
[chore] fix CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip committed Jun 15, 2018
1 parent a575639 commit 15bc60f
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions xclap.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"use strict";

const assert = require("assert");
const xclap = require("xclap");
const xsh = require("xsh");
const shell = xsh.$;
Expand Down Expand Up @@ -111,11 +112,18 @@ xclap.load({
"test-reporter": [".fyn-setup", ".test-reporter"],
".test-reporter": {
task: () => {
return exec(true, "lerna updated").then(r => {
if (r.stdout.indexOf("electrode-webpack-reporter") >= 0) {
return `~$cd packages/electrode-webpack-reporter && fyn --pg none install && npm test`;
}
});
return exec(true, "lerna updated")
.then(r => {
if (r.stdout.indexOf("electrode-webpack-reporter") >= 0) {
return `~$cd packages/electrode-webpack-reporter && fyn --pg none install && npm test`;
}
})
.catch(err => {
assert(
err.output.stderr.indexOf("lerna info No packages need updating") > 0,
".test-reporter: lerna updated failed without 'No packages need updating' message"
);
});
}
},
bootstrap: "~$fynpo",
Expand Down

0 comments on commit 15bc60f

Please sign in to comment.