# generator-travis **Repository Path**: mirrors_floatdrop/generator-travis ## Basic Information - **Project Name**: generator-travis - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-05-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # generator-travis [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url] > [Yeoman][yo] generator to get and keep `.travis.yml` up-to-date effortlessly. > [Works great with other generators too](#composability). Travis CI uses `.travis.yml` file in the root of repository to learn about project and how developer wants their builds to be executed. Learn how to [get started building NodeJS projects][nodejs-get-started] and how to [customize your builds][travis-customize]. The configuration template includes the following NodeJS versions: * stable (v4) * v0.12 * 0.10 [yo]: http://yeoman.io/ [nodejs-get-started]: http://docs.travis-ci.com/user/languages/javascript-with-nodejs/ [travis-customize]: http://docs.travis-ci.com/user/customizing-the-build/ ## Install npm install --global yo generator-travis ## Usage yo travis ## NodeJS versions in the config Every LTS-supported version is included. Once a version version becomes LTS-unsupported, it will be removed from the config template and this generator will get a minor version update. The same about new LTS versions. * NodeJS `v0.10` will be removed **October 1, 2016**. * NodeJS `v0.12` will be removed **April 1, 2017**. * NodeJS `v4.2.0` will be removed **April 1, 2018**. [Read more][NodeJS/LTS] about NodeJS long-term support/LTS. [NodeJS/LTS]: https://github.com/nodejs/LTS/ ## Composability > Composability is a way to combine smaller parts to make one large thing. Sort of [like Voltron®][voltron] > — [Yeoman docs](http://yeoman.io/authoring/composability.html) Just plug in _travis_ into your generator and let it handle your `.travis.yml` for you. Everybody wins. ### Install npm install --save generator-travis #### Compose ```js this.composeWith('travis', {}, { local: require.resolve('generator-travis/generators/app') }); ``` Add any extra fields you need to `options.config` to extend the default configuration. ```js this.composeWith('travis', { options: { config: { after_script: ['npm run coveralls'] } }}, { local: require.resolve('generator-travis/generators/app') }); ``` [voltron]: http://25.media.tumblr.com/tumblr_m1zllfCJV21r8gq9go11_250.gif ## License MIT © [Vladimir Starkov](https://iamstarkov.com) [npm-url]: https://npmjs.org/package/generator-travis [npm-image]: https://img.shields.io/npm/v/generator-travis.svg?style=flat-square [travis-url]: https://travis-ci.org/iamstarkov/generator-travis [travis-image]: https://img.shields.io/travis/iamstarkov/generator-travis.svg?style=flat-square [depstat-url]: https://david-dm.org/iamstarkov/generator-travis [depstat-image]: https://david-dm.org/iamstarkov/generator-travis.svg?style=flat-square [travis]: https://travis-ci.org/