travis-groovy
August 26, 2017 ยท View on GitHub
Execute groovy scripts on travis-ci
How
- Fork this repo and enable build on travis.
- Example
script.groovyincluded in the repo. Replace it with groovy script(s) of choice. - Execute multiple groovy scripts by adding commands to
scriptssection in.travis.yml - All groovy scripting goodness like
Grabavailable in the scripts.
Here is the sample output

Adding Environment Variables
Env variables added via Travis settings are accesible in the script via System.env.<var-here> syntax.

Scheduled Execution
Build (i.e. any script execution) can be triggered via cron settings available on Travis settings.

Notifications
Exiting with non-zero value is considered as build failure and a notification will be sent by Travis.