Travis CI

Spinnaker supports Travis as a continuous integration system.

You can configure Spinnaker to use Travis CI as your Continuous Integration system, trigger pipelines with Travis, or add a Travis stage to a pipeline.

Prerequisites

  • You need a Travis user with an API access token so that you get only the repos you should see.

  • That user needs adequate access in GitHub to trigger builds.

Add your Travis CI master

  1. Enable Travis CI:

    hal config ci travis enable

  2. If you’re using Spinnaker 1.19 or earlier, enable the Travis stage by adding the following to your Deck custom profile :

    1. window.spinnakerSettings.feature.travis = true;
  3. Add a Travis CI master named my-travis-master (or any arbitrary human-readable name):

    1. hal config ci travis master add my-travis-master \
    2. --address https://api.travis-ci.org \
    3. --base-url https://travis-ci.org \
    4. --github-token <token> \ # The GitHub token to authenticate to Travis
    5. --number-of-jobs # How many jobs the integration should fetch each
    6. # time the poller runs. Set this higher than the max
    7. # you expect during polling interval.
    8. # Defaults to 100.

Last modified September 3, 2021: Update travis.md (#141) (040d3cf)