Skip to main content

Working With Travis CI

Configuring the Applitools CI/CD Integration

  1. 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})
  2. On your project page, click on More options and then select Settings.

  3. 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.
  4. Click Add.