Welcome to mirror list, hosted at ThFree Co, Russian Federation.

install-ci-test.js « lib - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c52b5c9e8073f564ac815798a810c81ff092bde5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// npm install-ci-test
// Runs `npm ci` and then runs `npm test`

const CI = require('./ci.js')

class InstallCITest extends CI {
  /* 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