blob: 871f24b2f32d6af43307c7abf2d08dda35ae5fd2 (
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
|
// 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'
}
exec (args, cb) {
this.npm.commands.ci(args, (er) => {
if (er)
return cb(er)
this.npm.commands.test([], cb)
})
}
}
module.exports = InstallCITest
|