coverbadge
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -52,2 +52,3 @@ #!/usr/bin/env node | ||
outputPath: options.o, | ||
lastBuildNum: options.lastBuild, | ||
}); | ||
@@ -54,0 +55,0 @@ } |
{ | ||
"name": "coverbadge", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Create a coverage badge without any service provider.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -62,2 +62,3 @@ const path = require('path'); | ||
outputPath, | ||
lastBuildNum, | ||
}) => { | ||
@@ -72,8 +73,3 @@ const payload = { | ||
return getBuildSummary(payload) | ||
.then(summary => ( | ||
getBuildArtifacts(Object.assign({}, payload, { | ||
buildNum: get(summary, [0, 'previous_successful_build', 'build_num']), | ||
})) | ||
)) | ||
return getBuildArtifacts(Object.assign({}, payload, { buildNum: lastBuildNum })) | ||
.then(artifacts => getLastBadgeURL(artifacts, outputPath)) | ||
@@ -80,0 +76,0 @@ .then(url => downloadBadge(url, outputPath)) |
@@ -171,5 +171,2 @@ import fs from 'fs'; | ||
[{ | ||
previous_successful_build: { build_num: 10 }, | ||
}], | ||
[{ | ||
path: `/home/ubuntu/coverbadge/coverage/badge.svg`, | ||
@@ -185,2 +182,3 @@ url: 'url', | ||
outputPath, | ||
lastBuildNum: 10, | ||
}); | ||
@@ -187,0 +185,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
129101
859