-
Notifications
You must be signed in to change notification settings - Fork 0
travis ci
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.
- Travis uses YAML 1.1. See here for the full specification
- Is is often useful to have a YAML linter at hand. If find yamllint (
pip install yamllint
) is a good choice.
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.
/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.
-
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
-> https://docs.travis-ci.com/user/running-build-in-debug-mode/
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License *.
Code (snippets) are licensed under a MIT License *.
* Unless stated otherwise