Skip to content

Commit

Permalink
feat: metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
kalinkrustev committed Jun 7, 2023
1 parent 7c28841 commit 2a35ab7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/ut-jenkins.js
Expand Up @@ -47,9 +47,11 @@ if (
} else {
command = 'cover';
}
let result;
try {
const result = exec('npm', ['run', command], undefined, false);
if (result !== false && require(process.env.npm_package_json)?.scripts?.review && process.env.CHANGE_ID) exec('npm', ['run', 'review'], undefined, false);
result = exec('npm', ['run', command], undefined, false);
if (result !== false && require(process.env.npm_package_json)?.scripts?.review && process.env.CHANGE_ID) result = exec('npm', ['run', 'review'], undefined, false);
} finally {
exec('ut-run', ['metrics'], {shell: true}, false);
if (result === false) process.exit(1);
}

0 comments on commit 2a35ab7

Please sign in to comment.