Kiwi for Travis CI
Report check results from Travis CI to a run's Verify step with a checker key.
- Posts named check results over HTTP with a checker key. The key can report only the checks you choose in one project.
- Checks reserved for CI accept results only from a checker key.
- Records each result against the candidate under review. A pass counts toward Verify; a fail means the run needs rework.
- Records a retried report once.
- Kiwi does not start pipelines or read their logs. It records the results your pipeline sends.
Set up
Store your checker key as a repository settings environment variable named KIWI_CHECKER_KEY and add report-kiwi-check.sh from the setup guide to your repository.
This .travis.yml runs your tests, then reports the tests-pass check as pass or fail:
language: node_js
node_js:
- 22
dist: noble
addons:
apt:
packages:
- curl
- jq
- uuid-runtime
install: skip
script: npm ci && npm test
after_success: ./report-kiwi-check.sh tests-pass pass "$TRAVIS_BUILD_WEB_URL"
after_failure: ./report-kiwi-check.sh tests-pass fail "$TRAVIS_BUILD_WEB_URL"Trigger a build through the Travis CI API with KIWI_RUN_ID set to the Kiwi run ID in the request's build config env. The report runs in after_success or after_failure, so a failed report does not change the build's result.
Replace tests-pass with the check ID from your plan.