Skip to content

Yeoman example app to run automated tests on Travis CI

Notifications You must be signed in to change notification settings

manuelvanrijn/yeoman-travis-ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Integrate Travis CI into you Yeoman project Build Status

This is an example project that show's how you can integrate your Yeoman project into Travis CI. With just a few lines you'll be able to automatically test your Yeoman project whenever you push something to GitHub.

Prerequisites

The add support for Travis CI you should have Yeoman installed and have a initialized project. See the yeoman.io website for more information on this.

Adding Travis CI support

TL;DR;

See this commit with all the changes you have to make.

package.json

First you have to add yeoman as a dependency to your package.json file:

"devDependencies": {
  "yeoman": "~0.9.1"
}

Now run npm install to install the packages in your node_modules folder within your project.

Second, you have to make the npm test command aware it should execute yeoman test by adding these lines:

"scripts": {
  "test": "node_modules/.bin/yeoman test --verbose"
}

Now you can test the command by running npm test

Add some tests

At this point you can add some test into your project.

Add the .travis.yml

Create a .travis.yml file in the root of your project with the following content:

language: node_js
node_js:
  - 0.8
  - 0.9

Hook & Push!

At this point you only have to add the Travis CI hook to you project in GitHub and push your project.

githalytics.com alpha

About

Yeoman example app to run automated tests on Travis CI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published