Connect your Travis CI workflows to BuildPulse to help you find and fix flaky tests.
-
Locate the BuildPulse credentials for your account at buildpulse.io
-
In your repository settings on travis-ci.com or travis-ci.org, add two environment variables:
- One named
BUILDPULSE_ACCESS_KEY_IDwith the value set to theBUILDPULSE_ACCESS_KEY_IDfor your account - One named
BUILDPULSE_SECRET_ACCESS_KEYwith the value set to theBUILDPULSE_SECRET_ACCESS_KEYfor your account
- One named
-
Add the following
after_scriptclause to your.travis.yml:after_script: # Upload test results to BuildPulse for flaky test detection - curl -fsSL --retry 3 https://get.buildpulse.io/test-reporter-linux-amd64 > ./buildpulse-test-reporter - chmod +x ./buildpulse-test-reporter - ./buildpulse-test-reporter submit <path> --account-id <buildpulse-account-id> --repository-id <buildpulse-repository-id>
If you already have an
after_scriptclause in your.travis.ymlfile, append the steps above to your existingafter_scriptclause. -
On the last line, replace
<path>with the actual path containing the XML reports for your test results -
Also on the last line, replace
<buildpulse-account-id>and<buildpulse-repository-id>with your account ID and repository ID from buildpulse.io