Skip to content

Python CLI to kick off travis jobs on a particular branch and optionally inject environment variables

Notifications You must be signed in to change notification settings

danielwhatmuff/trigger-travis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trigger-travis

Overview

Get a token from Travis-ci.org

travis login --org
travis token --org

Get a token from Travis-ci.com

travis login --org --pro
travis token --org --pro

Install the CLI and view the available options

$ pip install trigger-travis
$ trigger-travis --help

Example of running a build and passing environment variables

$ trigger-travis -t yourtoken -r yourorg/yourrepo --branch develop --env SOMEENV=value,ANOTHERENV=anothervalue --mergemode deep_merge --pro

Example of running a build and overriding the commit message

$ trigger-travis -t yourtoken -c 'This build was triggered by the API' --branch master

Example of running a build and overriding the script

$ trigger-travis -t yourtoken -s 'exit 0' -m replace --branch master

Related docs

Known issues

  • 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...

About

Python CLI to kick off travis jobs on a particular branch and optionally inject environment variables

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages