Skip to main content

Use Argos with Travis CI

Configure Travis CI to send screenshots to Argos visual testing platform.

Configuring environment variable

Argos uses the ARGOS_TOKEN to identify to which repository the screenshots you send are related.

To get token value, sign in to Argos and click on the Gear buttonbutton in front of your repository.

In your Travis repository, go to Settings > Environment Variables. Then, set the ARGOS_TOKEN as an environment variable.

If you are not comfortable with storing secret, read Gitlab CI documentation about environment variables.

Configure Travis CI

.travis.yml
script:
# 👉 Insert the steps required to take screenshots

# Upload screenshots to argos-ci.com
- npx @argos-ci/cli upload ./screenshots

Read the Travis CI repository for a complete configuration example.