blob: 0d408178b33f2d9325f2c5b42b6e95e64ca2e262 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// npm install-ci-test
// Runs `npm ci` and then runs `npm test`
const CI = require('./ci.js')
class InstallCITest extends CI {
static get description () {
return 'Install a project with a clean slate and run tests'
}
/* istanbul ignore next - see test/lib/load-all-commands.js */
static get name () {
return 'install-ci-test'
}
/* istanbul ignore next - see test/lib/load-all-commands.js */
static get params () {
return [
'ignore-scripts',
'script-shell',
]
}
exec (args, cb) {
this.npm.commands.ci(args, (er) => {
if (er)
return cb(er)
this.npm.commands.test([], cb)
})
}
}
module.exports = InstallCITest
|