- Install and execute this CLI to trigger Travis CI builds on a particular branch, optionally overriding env vars or the script section
- For more information, see https://docs.travis-ci.com/user/triggering-builds/
travis login --org
travis token --org
travis login --org --pro
travis token --org --pro
$ pip install trigger-travis
$ trigger-travis --help
$ trigger-travis -t yourtoken -r yourorg/yourrepo --branch develop --env SOMEENV=value,ANOTHERENV=anothervalue --mergemode deep_merge --pro
$ trigger-travis -t yourtoken -c 'This build was triggered by the API' --branch master
$ trigger-travis -t yourtoken -s 'exit 0' -m replace --branch master
- Encrypted environment variables defined within your travis.yml don't work with the deep_merge option - you must define them in the repo settings using the Travis UI, this is a limitation with Travis...