https://github.com/bukinoshita/travis-init
Add TravisCI to your project
https://github.com/bukinoshita/travis-init
continuous-integration init nodejs travis-ci
Last synced: 5 months ago
JSON representation
Add TravisCI to your project
- Host: GitHub
- URL: https://github.com/bukinoshita/travis-init
- Owner: bukinoshita
- License: mit
- Created: 2017-03-03T17:00:54.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T23:23:26.000Z (over 3 years ago)
- Last Synced: 2025-06-09T17:25:50.899Z (about 1 year ago)
- Topics: continuous-integration, init, nodejs, travis-ci
- Language: JavaScript
- Homepage:
- Size: 391 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# travis-init
> Add TravisCI to your project
[](https://travis-ci.org/bukinoshita/travis-init)
## Install
```bash
$ npm install --save travis-init
```
## Usage
```js
import travisInit from 'travis-init'
const opts = {language: 'node_js', versions: ['6', '4']}
travisInit(opts).then(res => console.log(res))
// => .travis.yml created
```
## API
### travisInit(options)
#### options
Type: `object`
Should contain `language` and `versions`
#### language
Type: `string`
Options: for now we only support `node_js`
Required
#### versions
Type: `array`
Options:
- `node` - latest stable Node.js release
- `iojs` - latest stable io.js release
- `7` - latest 7.x release
- `6` - latest 6.x release
- `5` - latest 5.x release
- `4` - latest 4.x release
Required
## License
[MIT](https://github.com/bukinoshita/travis-init/blob/master/LICENSE) © Bu Kinoshita