You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Coverage percentage should be CORRECT_COVERAGE environment variable on Travis || 77.77778
if (coverage_percentage == process.env.CORRECT_COVERAGE) {
console.log('Success! Codecov\'s API returned the correct coverage percentage, '+ process.env.CORRECT_COVERAGE)
return process.exit(0);
} else {
console.log('Codecov did not return the correct coverage percentage. Coverage percentage should be '+ process.env.CORRECT_COVERAGE +' but Codecov returned '+coverage_percentage)
return process.exit(1);
}
} else {
console.log(`There was a problem calling the API. Please double check the url ${options.url}`)
return process.exit(1);
}
}
const napTime = (milliseconds) => {
console.log('Waiting 60 seconds for report to upload before pinging API...')
return new Promise(resolve => setTimeout(resolve, milliseconds))