https://github.com/onnimonni/travis-extra
Simplify your .travis.yml
https://github.com/onnimonni/travis-extra
ruby travis-ci
Last synced: about 1 month 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 (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-10T20:36:30.000Z (almost 9 years ago)
- Last Synced: 2025-02-15T00:36:48.810Z (over 1 year 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 [](https://travis-ci.org/onnimonni/travis-extra) [](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 env
This 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