Working With Travis CI
Configuring the Applitools CI/CD Integration
-
In the travis.yml file, add the following line to the script section that runs before an Eyes test runs:
script:
- export APPLITOOLS_BATCH_ID=$(echo ${TRAVIS_PULL_REQUEST_SHA:=$TRAVIS_COMMIT}) -
On your project page, click on More options and then select Settings.
-
In the Environment Variables section, enter the following:
- In the Name field enter
APPLITOOLS_API_KEY
. - In the Value field enter the value of your API key. To obtain the value of your API key, see How to obtain your API key.
- In the Name field enter
-
Click Add.