36

How can I set up a build schedule for Travis-CI that is not based around pushing to GitHub? I want to run Selenium tests against my production site nightly. I'm happy with a hacky solution if official support is not present.

Synesso
  • 37,610
  • 35
  • 136
  • 207

3 Answers3

34

Travis-CI's cron jobs feature was implemented in May 2016.

Synesso
  • 37,610
  • 35
  • 136
  • 207
20

I've launched a self-service app for this: https://nightli.es. Ensures the project is built at least once a day.

coderanger
  • 52,400
  • 4
  • 52
  • 75
3

I see two options which will give you full control to setup your build schedule.

  • Using Travis CI command line interface with OS task scheduler or

  • You may use an external solution such as Tron CI which gives you the chance to schedule as many builds you want for each project that you have on Travis CI. I've been using it for quite a time to run one of my projects twice a day and works just perfectly.

Fabio Menegazzo
  • 1,191
  • 8
  • 9
  • 1
    Tron CI's UI is broken. I keep getting internal server errors. (But triggering Travis builds seems to work fine.) – Louis Dionne Mar 29 '16 at 16:58
  • Tron CI: "Offline for maintenance. This app is undergoing maintenance right now. Please check back later." – Hugo May 20 '19 at 13:03
  • As @synesso pointed out, Travis added this feature in 2016. Because of this Tron CI actually has no reason to be and it was turned off. – Fabio Menegazzo May 22 '19 at 16:40
  • How can one schedule daily midnight travis build with travis command line interface? I couldn't find any option to schedule cron job build using travis cli client. – SilentGuy Aug 21 '19 at 15:59