Giter VIP home page Giter VIP logo

generator-travis's Introduction

generator-travis

NPM version Build Status Dependency Status

Yeoman generator to get and keep .travis.yml up-to-date effortlessly.
Works great with other generators too.

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 and how to customize your builds.

The configuration template includes the following NodeJS versions:

  • v15 (From 2020-10-21 until 2021-06-30)
  • v14 (until 2023-04-30)
  • v12 (until 2022-04-30)
  • v10 (until 2021-04-01)

Install

npm install --global yo generator-travis

Usage

yo travis

NodeJS versions in the config

Every LTS-supported version is included plus current one if its not LTS-supported. The list of the versions is loaded from https://nodejs.org/dist/index.json at run-time.

  • NodeJS v15 will be added on 2020-10-21 and removed on 2021-06-30.
  • NodeJS v14 will be removed on 2023-04-30.
  • NodeJS v12 will be removed on 2022-04-30.
  • NodeJS v10 will be removed on 2021-04-01.

All other versions, except for those added through options.config, are removed from the config.

NodeJS LTS Timeline

Read more about NodeJS long-term support/LTS.

Composability

Composability is a way to combine smaller parts to make one large thing. Sort of like Voltron®
Yeoman docs

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

this.composeWith('travis', {}, {
  local: require.resolve('generator-travis')
});

Add any extra fields you need to options.config to extend the default configuration.

this.composeWith('travis', { options: { config: {
  after_script: ['npm run coveralls'],
  node_js: ['v0.12']
}}}, {
  local: require.resolve('generator-travis')
});

License

MIT © Vladimir Starkov

generator-travis's People

Contributors

canercandan avatar floatdrop avatar greenkeeper[bot] avatar iamstarkov avatar myhlamaeus avatar sboudrias avatar vovanr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

generator-travis's Issues

checklist

should be compatible with

generator-node
generator-nm
generator-tiny-es-nm
generator-rise

Adding unecessary quotes updating .travis.yml

.travis.yml before

before_script:
  - export NODE_PATH="$NVM_PATH/../node_modules"

And after

before_script:
  - 'export NODE_PATH="$NVM_PATH/../node_modules"'

Is there a way to keep the style cleaner?

Better description?

Hi, I'd like to include this in my Newsletter, but I don't really understand what this is. My questions:

  • What is "travis"? Do mean this: https://travis-ci.org/
  • What do you mean by "travis config"?
  • It says you won't lose existing config. Existing config in what?
  • To install, it says to use the "yo" command. Does that mean this is a Yeoman plugin? Is this a scaffolding tool/plugin or something?

I don't use Yeoman or Travis or similar tools, but I just want to see if maybe your description could be improved to help people understand why this tool might be useful. Thanks.

An in-range update of yamljs is breaking the build 🚨

Version 0.2.10 of yamljs just got published.

Branch Build failing 🚨
Dependency yamljs
Current Version 0.2.9
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

As yamljs is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this 💪


Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details
Commits

The new version differs by 2 commits .

  • 305f32d Fix unreachable code. Closes #87 and #86
  • 68cfee5 Prepare 0.2.9 release

See the full diff.

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Ordering/Cleaning versions

The generator adds new versions without considering style and ordering of the node_js section. So that's a request in two parts:

  1. I'd like if the generator could sort the versions (more recent to oldest would be my preference)
  2. If the style could stay consistent (strings '0.10' or versions markers v4. My pref is always go v0.10, etc)

Update package.json main attribute

Hello,

i'm trying to create a composite generator that is using this one, but its not able to even find the 'generator-travis' module. After a couple hours banging my head, I found out that if I change the attribute main in your package.json to the correct path (generators/app/index.js) everything is fine.

Tnx!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.