- Get your Travis API token and set it as an encrypted (hidden) environment variable (
TRAVIS_TOKEN
) in your project settings - Configure the variables
TARGET_OWNER
andTARGET_REPO
in yourtrigger-travis-on-myreponame.sh
script
Note: make sure you use your travis-ci.com API token if you want to trigger a build in a private project, or your travis-ci.org token if you want to trigger a build on a public one.
You can get your API token through the Travis CLI, or by accessing the API explorer:
- For .com: https://developer.travis-ci.com/explore/
- For .org: https://developer.travis-ci.org/explore/