1 | @heroku-cli/plugin-ci
|
2 | =====================
|
3 |
|
4 | Heroku 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 |
|
17 | * [Usage](#usage)
|
18 | * [Commands](#commands)
|
19 |
|
20 | # Usage
|
21 |
|
22 | ```sh-session
|
23 | $ npm install -g @heroku-cli/plugin-ci
|
24 | $ heroku COMMAND
|
25 | running command...
|
26 | $ heroku (-v|--version|version)
|
27 | @heroku-cli/plugin-ci/7.16.3 darwin-x64 node-v10.2.1
|
28 | $ heroku --help [COMMAND]
|
29 | USAGE
|
30 | $ heroku COMMAND
|
31 | ...
|
32 | ```
|
33 |
|
34 | # Commands
|
35 |
|
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 |
|
44 | display the most recent CI runs for the given pipeline
|
45 |
|
46 | ```
|
47 | USAGE
|
48 | $ heroku ci
|
49 |
|
50 | OPTIONS
|
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 |
|
56 | EXAMPLE
|
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 |
|
64 | show the status of a specific test run
|
65 |
|
66 | ```
|
67 | USAGE
|
68 | $ heroku ci:info TEST-RUN
|
69 |
|
70 | OPTIONS
|
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 |
|
75 | EXAMPLE
|
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 |
|
83 | looks for the most recent run and returns the output of that run
|
84 |
|
85 | ```
|
86 | USAGE
|
87 | $ heroku ci:last
|
88 |
|
89 | OPTIONS
|
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 |
|
94 | EXAMPLE
|
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 |
|
102 | rerun tests against current directory
|
103 |
|
104 | ```
|
105 | USAGE
|
106 | $ heroku ci:rerun [NUMBER]
|
107 |
|
108 | OPTIONS
|
109 | -a, --app=app app to run command against
|
110 | -p, --pipeline=pipeline name of pipeline
|
111 |
|
112 | EXAMPLE
|
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 |
|
120 | run tests against current directory
|
121 |
|
122 | ```
|
123 | USAGE
|
124 | $ heroku ci:run
|
125 |
|
126 | OPTIONS
|
127 | -a, --app=app app to run command against
|
128 | -p, --pipeline=pipeline name of pipeline
|
129 |
|
130 | EXAMPLE
|
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 |
|
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 |
|
143 | Shows the information for a particular ci run on a pipeline.
|
144 |
|
145 | ```
|
146 | USAGE
|
147 | $ heroku ci:info 555 --pipeline=my-pipeline # 555 is the test number
|
148 | ```
|
149 |
|
150 | ## `heroku ci:last`
|
151 |
|
152 | Shows the information for the last run for a given pipeline.
|
153 |
|
154 | ```
|
155 | USAGE
|
156 | $ heroku ci:last --pipeline=my-pipeline
|
157 | ```
|
158 |
|
159 | ## `heroku ci:run`
|
160 |
|
161 | Run this from within your repo directory to trigger a test agains the current branch and commit.
|
162 |
|
163 | ```
|
164 | USAGE
|
165 | $ heroku ci:run --pipeline=my-pipeline
|
166 | ```
|
167 |
|
168 | ## `heroku ci:rerun`
|
169 |
|
170 | Re-run a previous test run. If no test run number is provided, the most recent test run will be re-run.
|
171 |
|
172 | ```
|
173 | USAGE
|
174 | $ heroku ci:rerun 555 --pipeline=my-pipeline # 555 is the test number
|
175 | ```
|