A Heroku-ready travis triggerer. Allows you to manually or periodically trigger a build for a specific branch.
Heavily inspired by:
- You have the Heroku Toolbelt installed
- You have a Github Token with the default settings
git clone https://github.com/larslockefeer/trigger-travis.git
heroku apps:create {my-prefix}-trigger-travis
heroku config:add TRAVIS_REPOSITORY={user/organization}/{repository}
heroku config:add GITHUB_TOKEN={token}
heroku config:add TRAVIS_BRANCH={branch}
git push heroku master
If you are using Travis Pro instead of Travis for Open Source projects, you also need to do the following:
heroku config:add TRAVIS_PRO=true
You can now trigger a build manually by executing:
heroku run rake build
Or you can schedule a periodical build:
heroku addons:create scheduler:standard
heroku addons:open scheduler
Add the task rake build
to your heroku scheduler