Skip to content

travis ci

holzkohlengrill edited this page Dec 15, 2023 · 2 revisions

Travis Jobs

There are two types of configs

  • Matrices and
  • stages.

Matrices you would use to easily mix and match several settings. You want to test (nearly) all of them. Matrix projects run in parallel.

Using stages you generally want a specific order. Stage projects run sequentially and parallel within a stage (-> aka matrix expansion or via multiple stages having the same name).

Matrix expansion per stage will hopefully integrated soon.

YAML Config Files

Travis CLI

Not on Windows users: I never managed to get that working on Windows (like encrypting a password for deployment). Just use a Linux virtual machine.

Encrypt secret

/home/marcel/.gem/ruby/2.6.0/gems/travis-1.8.9/bin/travis encrypt "<data to encrypt>" -r <GitHub user or organisation>/repo
Please add the following to your .travis.yml file:

  secure: "<some long hash>"

Pro Tip: You can add it automatically by running with --add.

A complex Travis config

  • Ruby Travis Config
    • Here you also see some aliases which are very handy if you have specific (and many) system configs but you do not want to run each for each stage

Travis job debugging

-> https://docs.travis-ci.com/user/running-build-in-debug-mode/

Clone this wiki locally