Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/onnimonni/travis-extra
Simplify your .travis.yml
https://github.com/onnimonni/travis-extra
ruby travis-ci
Last synced: 5 days ago
JSON representation
Simplify your .travis.yml
- Host: GitHub
- URL: https://github.com/onnimonni/travis-extra
- Owner: onnimonni
- License: mit
- Created: 2017-07-10T19:33:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-10T20:36:30.000Z (over 7 years ago)
- Last Synced: 2024-10-31T14:23:32.215Z (19 days ago)
- Topics: ruby, travis-ci
- Language: Ruby
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# travis-extra [![Build Status](https://travis-ci.org/onnimonni/travis-extra.svg?branch=master)](https://travis-ci.org/onnimonni/travis-extra) [![Gem Version](https://badge.fury.io/rb/travis-extra.svg)](http://badge.fury.io/rb/travis-extra)
Helper script for doing more with Travis CI. It reads `.travis-extra.yml` file from current directory and exports environmental variables for your CI run.
## Features
### Add branch-specific envThis example `.travis-extra.yml`:
```yaml
env:
branch:
master:
SOMEVAR=true
EXTRA_THING=taxi
```Will output these extra variables when `TRAVIS_BRANCH=master`.
```bash
$ travis-extra --load-env
export SOMEVAR=true EXTRA_THING=taxi
```You can load them by running:
```bash
$ eval $(travis-extra --load-env)
```### Specify custom config file
You can use `--file` flag to specify custom config file
```
$ travis-extra --file=config/extra.yml
```## License
MIT