UNPKG

661 BJavaScriptView Raw
1const cli = require('heroku-cli-util')
2const co = require('co')
3const api = require('../../lib/heroku-api')
4const TestRun = require('../../lib/test-run')
5
6function* run (context, heroku) {
7 const coupling = yield api.pipelineCoupling(heroku, context.app)
8 return yield TestRun.displayAndExit(coupling.pipeline, context.args.number, { heroku })
9}
10
11module.exports = {
12 topic: 'ci',
13 command: 'info',
14 needsApp: true,
15 needsAuth: true,
16 args: [
17 {
18 name: 'number',
19 description: 'the test run number to show'
20 }
21 ],
22 description: 'test run information',
23 help: 'show the status of a specific test run',
24 run: cli.command(co.wrap(run))
25}