Skip to content

Commit

Permalink
test/README.md: Add section explaining GitHub integration
Browse files Browse the repository at this point in the history
  • Loading branch information
larskarlitski committed Jul 3, 2019
1 parent dc98837 commit fce196a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,20 @@ To get the latest images you need to update it manually (in order not to poll
GitHub every time):

$ make -B bots

## GitHub integration

Tests are automatically triggered for every pull request. To disable tests for
a pull request, add the `no-test` label when opening it.

To interact with GitHub from scripts in `bots/`, generate [a
token](https://github.com/settings/tokens) with at least *repo:status*,
*public_repo*, and *read:org* permissions, and put it into
`~/.config/github-token`.

You can retry a failed test with:

$ bots/tests-trigger --repo weldr/lorax <PR> <test>

If no test is given, all failed tests will be retried. Pass `--allow` to
trigger tests on a pull request by an outside contributor.

0 comments on commit fce196a

Please sign in to comment.