The example below uses the Checkly command line trigger feature to run checks from your Codeship project.
If you are using Codeship, you can add an extra custom deployment script after your existing deployment procedure:
echo 'Deployment finished.' curl "https://api-test.checklyhq.com/check-groups/4/trigger/$CHECKLY_TOKEN" > $PWD/checkly.json if [ $(grep -c '"hasFailures":true' $PWD/checkly.json) -ne 0 ]; then exit 1; fi
Additionally, you will need to set the
CHECKLY_TOKEN environment variable from the
Environment tab in your Codeship project settings:
Note: the Checkly Token is the very last part of the check’s command line trigger URL.