heroku-ci/README.md

42 строки
1.5 KiB
Markdown
Исходник Обычный вид История

2016-11-07 12:46:25 +03:00
# Heroku CI CLI
2016-11-09 14:51:07 +03:00
[![Heroku CI Status](https://ci-badges.herokuapp.com/pipelines/420ca0bc-031b-479a-9335-1d51046daab2/master.svg)](https://dashboard.heroku.com/pipelines/420ca0bc-031b-479a-9335-1d51046daab2/tests)
2016-11-07 12:46:25 +03:00
The CLI plugin for Heroku CI
2016-11-07 14:26:21 +03:00
2016-11-10 14:59:58 +03:00
## Installation
```sh
heroku plugins:install heroku-ci
```
2016-11-07 14:26:21 +03:00
## Commands
2016-11-10 13:10:25 +03:00
All commands accept a `-a` flag. This should be the name of an app in the pipeline you have connected to Heroku CI. The `-a` flag can be omitted if you are in the directory of an app already.
2016-11-07 15:11:39 +03:00
`heroku ci:list`, aliased as `heroku ci`
2016-11-07 14:26:21 +03:00
2016-11-09 14:29:03 +03:00
Show the statuses of the most recent test runs. Add the `-w` or `--watch` flag to keep the session running and listen for updates.
2016-11-07 19:25:17 +03:00
2016-11-10 13:10:25 +03:00
`heroku ci:info NUMBER`
2016-11-07 19:25:17 +03:00
2016-11-10 13:10:25 +03:00
Show the status of a specific test run. If no run number is provided the most recent will be shown.
2016-11-08 19:02:06 +03:00
`heroku ci:last`
2016-11-10 13:10:25 +03:00
Show the status of the most recent test run
`heroku ci:run`
Run this from within your repo directory to trigger a test agains the current branch and commit.
`heroku ci:rerun NUMBER`
Re-run a previous test run. If no test run number is provided, the most recent test run will be re-run.
2017-02-10 13:12:56 +03:00
`heroku ci:migrate-manifest`
2017-02-10 13:14:20 +03:00
Migrate the current directory from the deprecated `app-ci.json` file format to the new `app.json` + `environments`. [See the docs](https://devcenter.heroku.com/articles/heroku-ci-prerelease#migrating-applications-using-app-ci-json) for more details.
2017-02-22 18:41:20 +03:00
`heroku ci:debug`
Run this from within your repo directory to start and attach to a debug run. Useful for debugging failing test setup or a test which fails in CI but passes locally.