mirror of
https://github.com/nasa/openmct.git
synced 2025-01-18 02:39:56 +00:00
[CI] Save coverage in artifacts
Save code coverage results in artifacts when building on circleci.
This commit is contained in:
parent
668b09b789
commit
751414a686
@ -20,7 +20,7 @@
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
|
||||
/*global module*/
|
||||
/*global module,process*/
|
||||
module.exports = function(config) {
|
||||
config.set({
|
||||
|
||||
@ -79,7 +79,9 @@ module.exports = function(config) {
|
||||
|
||||
// Code coverage reporting.
|
||||
coverageReporter: {
|
||||
dir: "dist/coverage"
|
||||
dir: process.env.CIRCLE_ARTIFACTS ?
|
||||
process.env.CIRCLE_ARTIFACTS + '/coverage' :
|
||||
"dist/coverage"
|
||||
},
|
||||
|
||||
// HTML test reporting.
|
||||
@ -90,7 +92,7 @@ module.exports = function(config) {
|
||||
},
|
||||
|
||||
junitReporter: {
|
||||
outputDir: process.env.CIRCLE_TEST_REPORTS || 'target/junit',
|
||||
outputDir: process.env.CIRCLE_TEST_REPORTS || 'target/junit'
|
||||
},
|
||||
|
||||
// Continuous Integration mode.
|
||||
|
Loading…
Reference in New Issue
Block a user