Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

rosadmin/travis-restarts

Repository files navigation

travis-restarts

Heroku app to restart rOpenSci Travis-CI builds

Uses

Note: After a few days the Heroku scheduler didn't work. I reset the scheduler from once per day to once per 10 minutes - it started working - then switched back to once per day. Now it seems to work again. Heroku states that the service is 100% reliable - indeed. Explored clockwork gem a bit, but didn't fully figure it out yet for a rack app (most egs are for Rails apps).

Usage

  • Clone this repo locally
git clone git@github.com:ropensci/travis-restarts.git
  • If you don't have it yet, install the heroku toolbelt

  • Create an heroku app to deploy to

heroku apps:create <app-name>
  • Deploy to heroku
git push heroku master
  • Generate a travis token
bundle install
bundle exec travis login
bundle exec travis token
  • Add the parameters to your heroku app
heroku config:add TRAVIS_REPO_=<github-user>/<github-repo>
heroku config:add TRAVIS_TOKEN=`bundle exec travis token`

Note that those aren't quotes around bundle exec travis token, but backticks

  • Test that the latest build is restarted by manually running
heroku run rake build
  • Add the scheduler to your heroku app
heroku addons:add scheduler:standard
heroku addons:open scheduler
  • Add the task rake build to your heroku scheduler

About

Heroku app to restart rOpenSci Travis-CI builds

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages