Skip to main content

Use Argos with CodeShip

Configure CodeShip 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 CodeShip project go to Settings > Environment Variables. Then, set the ARGOS_TOKEN as an environment variable.

Warning: Be careful to store your Argos token safely. ARGOS_TOKEN environment variable should be accessible by your CI but not visible publicly.

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

Configure CodeShip step file

codeship-steps.yml
- name: ci
type: parallel
steps:
- service: project_name
command: npx @argos-ci/cli upload ./screenshots

Read the CodeShip repository for a complete configuration example.