Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/philou/daily-travis

A dead simple heroku ready travis daily sceduler
https://github.com/philou/daily-travis

Last synced: 1 day ago
JSON representation

A dead simple heroku ready travis daily sceduler

Awesome Lists containing this project

README

        

[![Project Status: Unsupported – The project has reached a stable, usable state but the author(s) have ceased all work on it. A new maintainer may be desired.](https://www.repostatus.org/badges/latest/unsupported.svg)](https://www.repostatus.org/#unsupported)

# daily-travis

A dead simple heroku ready travis daily sceduler

## :warning: Note 2020-09-04

[Travis CI](https://travis-ci.com/) has now long been supporting its own version of [Cron Jobs](https://docs.travis-ci.com/user/cron-jobs/). There is no use for this tool anymore.

## :warning: Note 2015-09-04

https://nightli.es/ is an independent service that the travis team [suggests using](https://github.com/travis-ci/travis-ci/issues/582). I switched to this one myself, and am not intending to maintain daily-travis from now on.

## Usage

* Clone this repo locally

```shell
git clone https://github.com/philou/daily-travis.git
```

* If you don't have it yet, install the [heroku toolbelt](https://devcenter.heroku.com/articles/quickstart)

* Create an heroku app to deploy to

```shell
heroku apps:create -daily-travis
```

* Deploy to heroku

```shell
git push heroku master
```

* Generate a github token

Explanations are [here](https://help.github.com/articles/creating-an-access-token-for-command-line-use). Default authorizations are fine.
Note the token somewhere.

* Add the parameters to your heroku app

```shell
heroku config:add TRAVIS_REPOSITORY=/
heroku config:add GITHUB_TOKEN=
```

* Test that the latest build is restarted by manually running

```shell
heroku run rake build
```

* Add the scheduler to your heroku app

```shell
heroku addons:add scheduler:standard
heroku addons:open scheduler
```

* Add the task ```rake build``` to your heroku scheduler

## Alternatives

* https://nightli.es/ is an independent service that the travis team [suggests using](https://github.com/travis-ci/travis-ci/issues/582)
* The [travis-cron](http://traviscron.pythonanywhere.com/) web app and [git repo](https://github.com/FiloSottile/travis-cron). Which is manually moderated.