Covered in this doc
Integrating Percy with your Travis CI environment
Start by configuring
PERCY_TOKEN, our project-specific, write-only API token. It can be found in your Percy project settings and set via your Travis CI environment variables in settings for a repository
In your Travis repository go to Settings > Environment Variables.
PERCY_TOKEN to the write-only token from your Percy project. This token can be found in each Percy project's settings.
Keep your Percy token secret
Anyone with access to your token can add builds to your project, though they cannot read data.
For Travis CI, make sure the "Display value in build log" toggle is off.
A slightly more complicated way to set secret environment variables in Travis is to encrypt them and store them in your
.travis.yml. See the Travis: Encrypted Variables docs for more info.
Updated over 3 years ago