Integration: Travis CI

Integrate Ghost Inspector with Travis CI

Search our documentation:

Toggle Documentation Menu

Integration: Travis CI

If you would like to trigger Ghost Inspector tests through Travis CI, you can do this via their webhooks feature. Add the snippet below to the .travis.yml file in your repo.

In the example below, you will need to swap in your own values for [suite-id] and [api-key].

notifications:
  webhooks:
    urls:
      - https://api.ghostinspector.com/v1/suites/[suite-id]/execute/?apiKey=[api-key]
    on_success: always
    on_failure: never
Note: This code assumes that you want to execute a suite after your project has been built. For other options, please see our API.