Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kdabir/travis-groovy
execute groovy scripts on travis-ci
https://github.com/kdabir/travis-groovy
groovy scripts travis-ci
Last synced: 22 days ago
JSON representation
execute groovy scripts on travis-ci
- Host: GitHub
- URL: https://github.com/kdabir/travis-groovy
- Owner: kdabir
- License: mit
- Created: 2017-08-26T06:40:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-22T08:43:41.000Z (over 6 years ago)
- Last Synced: 2024-11-10T14:24:35.442Z (2 months ago)
- Topics: groovy, scripts, travis-ci
- Language: Groovy
- Size: 7.81 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-groovy - travis-groovy - execute groovy scripts on travis-ci (Build tools, setup and CI)
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.