Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/kdabir/travis-groovy

execute groovy scripts on travis-ci
https://github.com/kdabir/travis-groovy

groovy scripts travis-ci

Last synced: about 2 months ago
JSON representation

execute groovy scripts on travis-ci

Awesome Lists containing this project

README

        

# travis-groovy
Execute groovy scripts on travis-ci

[![Build Status](https://travis-ci.org/kdabir/travis-groovy.svg?branch=master)](https://travis-ci.org/kdabir/travis-groovy)

## How
- Fork this repo and enable build on travis.
- Example `script.groovy` included in the repo. Replace it with groovy script(s) of choice.
- Execute multiple groovy scripts by adding commands to `scripts` section in `.travis.yml`
- All groovy scripting goodness like `Grab` available in the scripts.

Here is the sample output

![image](https://user-images.githubusercontent.com/735240/29739403-9a27c8b6-8a5a-11e7-8f61-0c5ea1ed0336.png)

### Adding Environment Variables

Env variables added via Travis settings are accesible in the script via `System.env.` syntax.

![image](https://user-images.githubusercontent.com/735240/29739421-ed1772f6-8a5a-11e7-9c91-d768d41c4e4c.png)

### Scheduled Execution

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

![image](https://user-images.githubusercontent.com/735240/29739419-e28ad8b4-8a5a-11e7-9978-97d4f07d91ea.png)

### Notifications

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