Trigger tests using CircleCI

If you use CircleCI for your code testing and deployment you can also kick off a round of SpeedCurve tests at any point in the process.

Use either the run or deploy command in your yaml configuration file and add the follow CURL request.

In this example we use the environment variables build_num and build_url but you can any of the variables available in CircleCI. 

curl "https://api.speedcurve.com/v1/deploys" -u replace_with_your_api_key:x --request POST --data site_id=replace_with_your_site_id --data-urlencode "note=#${CIRCLE_BUILD_NUM}" --data-urlencode "detail=${CIRCLE_BUILD_URL}"