UNPKG

4.64 kBMarkdownView Raw
1@heroku-cli/plugin-ci
2=====================
3
4Heroku CLI plugin for Heroku CI
5
6[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
7[![Version](https://img.shields.io/npm/v/@heroku-cli/plugin-ci.svg)](https://npmjs.org/package/@heroku-cli/plugin-ci)
8
9[![CircleCI](https://circleci.com/gh/heroku/cli/tree/master.svg?style=shield)](https://circleci.com/gh/heroku/cli/tree/master)
10
11[![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/heroku/cli?branch=master&svg=true)](https://ci.appveyor.com/project/heroku/cli/branch/master)
12[![Codecov](https://codecov.io/gh/heroku/cli/branch/master/graph/badge.svg)](https://codecov.io/gh/heroku/cli)
13[![Downloads/week](https://img.shields.io/npm/dw/@heroku-cli/plugin-ci.svg)](https://npmjs.org/package/@heroku-cli/plugin-ci)
14[![License](https://img.shields.io/npm/l/@heroku-cli/plugin-ci.svg)](https://github.com/heroku/cli/blob/master/package.json)
15
16<!-- toc -->
17* [Usage](#usage)
18* [Commands](#commands)
19<!-- tocstop -->
20# Usage
21<!-- usage -->
22```sh-session
23$ npm install -g @heroku-cli/plugin-ci
24$ heroku COMMAND
25running command...
26$ heroku (-v|--version|version)
27@heroku-cli/plugin-ci/7.16.3 darwin-x64 node-v10.2.1
28$ heroku --help [COMMAND]
29USAGE
30 $ heroku COMMAND
31...
32```
33<!-- usagestop -->
34# Commands
35<!-- commands -->
36* [`heroku ci`](#heroku-ci)
37* [`heroku ci:info TEST-RUN`](#heroku-ciinfo-test-run)
38* [`heroku ci:last`](#heroku-cilast)
39* [`heroku ci:rerun [NUMBER]`](#heroku-cirerun-number)
40* [`heroku ci:run`](#heroku-cirun)
41
42## `heroku ci`
43
44display the most recent CI runs for the given pipeline
45
46```
47USAGE
48 $ heroku ci
49
50OPTIONS
51 -a, --app=app app to run command against
52 -p, --pipeline=pipeline name of pipeline
53 --json output in json format
54 --watch keep running and watch for new and update tests
55
56EXAMPLE
57 $ heroku ci --app murmuring-headland-14719
58```
59
60_See code: [src/commands/ci/index.ts](https://github.com/heroku/cli/blob/v7.16.3/packages/ci/src/commands/ci/index.ts)_
61
62## `heroku ci:info TEST-RUN`
63
64show the status of a specific test run
65
66```
67USAGE
68 $ heroku ci:info TEST-RUN
69
70OPTIONS
71 -a, --app=app app to run command against
72 -p, --pipeline=pipeline name of pipeline
73 --node=node the node number to show its setup and output
74
75EXAMPLE
76 $ heroku ci:info 1288 --app murmuring-headland-14719
77```
78
79_See code: [src/commands/ci/info.ts](https://github.com/heroku/cli/blob/v7.16.3/packages/ci/src/commands/ci/info.ts)_
80
81## `heroku ci:last`
82
83looks for the most recent run and returns the output of that run
84
85```
86USAGE
87 $ heroku ci:last
88
89OPTIONS
90 -a, --app=app app to run command against
91 -p, --pipeline=pipeline name of pipeline
92 --node=node the node number to show its setup and output
93
94EXAMPLE
95 $ heroku ci:last --app murmuring-headland-14719 --node 100
96```
97
98_See code: [src/commands/ci/last.ts](https://github.com/heroku/cli/blob/v7.16.3/packages/ci/src/commands/ci/last.ts)_
99
100## `heroku ci:rerun [NUMBER]`
101
102rerun tests against current directory
103
104```
105USAGE
106 $ heroku ci:rerun [NUMBER]
107
108OPTIONS
109 -a, --app=app app to run command against
110 -p, --pipeline=pipeline name of pipeline
111
112EXAMPLE
113 $ heroku ci:rerun 985 --app murmuring-headland-14719
114```
115
116_See code: [src/commands/ci/rerun.ts](https://github.com/heroku/cli/blob/v7.16.3/packages/ci/src/commands/ci/rerun.ts)_
117
118## `heroku ci:run`
119
120run tests against current directory
121
122```
123USAGE
124 $ heroku ci:run
125
126OPTIONS
127 -a, --app=app app to run command against
128 -p, --pipeline=pipeline name of pipeline
129
130EXAMPLE
131 $ heroku ci:run --app murmuring-headland-14719
132```
133
134_See code: [src/commands/ci/run.ts](https://github.com/heroku/cli/blob/v7.16.3/packages/ci/src/commands/ci/run.ts)_
135<!-- commandsstop -->
136* [`heroku ci:info`](#heroku-ci-info)
137* [`heroku ci:last`](#heroku-ci-last)
138* [`heroku ci:run`](#heroku-ci-run)
139* [`heroku ci:rerun`](#heroku-ci-rerun)
140
141## `heroku ci:info`
142
143Shows the information for a particular ci run on a pipeline.
144
145```
146USAGE
147 $ heroku ci:info 555 --pipeline=my-pipeline # 555 is the test number
148```
149
150## `heroku ci:last`
151
152Shows the information for the last run for a given pipeline.
153
154```
155USAGE
156 $ heroku ci:last --pipeline=my-pipeline
157```
158
159## `heroku ci:run`
160
161Run this from within your repo directory to trigger a test agains the current branch and commit.
162
163```
164USAGE
165 $ heroku ci:run --pipeline=my-pipeline
166```
167
168## `heroku ci:rerun`
169
170Re-run a previous test run. If no test run number is provided, the most recent test run will be re-run.
171
172```
173USAGE
174 $ heroku ci:rerun 555 --pipeline=my-pipeline # 555 is the test number
175```