Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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: 23 days ago
JSON representation

Add TravisCI to your project

Awesome Lists containing this project

README

        

# travis-init

> Add TravisCI to your project

[![Build Status](https://travis-ci.org/bukinoshita/travis-init.svg?branch=master)](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