This is a Build Plugin for Netlify that uses the SpeedCurve API to automatically trigger a round of tests after a successful build has occured. After a successful build, tell SpeedCurve you've deployed and trigger a round of testing.
-
Make sure you've enabled build plugins for your site on Netlify.
-
Install the plugin using
npm
:
npm i netlify-build-plugin-speedcurve
- Update your
netlify.toml
configuration file to reference the plugin in your plugins section:
[[plugins]]
package = "netlify-build-plugin-speedcurve"
-
Grab your SpeedCurve API Key (Admin > Teams) and the ID for the site you want to test (under Settings > Sites) and store them as environmental variables inside of Netlify. Save them as SPEEDCURVE_API_KEY & SPEEDCURVE_SITE_ID.
-
Using the latest version of the Netlify CLI, run a dry build:
netlify build --dry
If you see Plugin netlify-build-plugin-speedcurve
attached to the onSuccess
lifecycle, you should be all set! Deploy knowing that you're tracking each change in SpeedCurve for analysis.