blob: 52c41c413a64ccc5a590a8dcb7e384a6a5b1c34f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// npm install-ci-test
// Runs `npm ci` and then runs `npm test`
const ci = require('./ci.js')
const test = require('./test.js')
const usageUtil = require('./utils/usage.js')
const usage = usageUtil(
'install-ci-test',
'npm install-ci-test [args]' +
'\nSame args as `npm ci`'
)
const completion = ci.completion
const ciTest = (args, cb) =>
ci(args, er => er ? cb(er) : test([], cb))
module.exports = Object.assign(ciTest, { usage, completion })
|