Yeoman example app to run automated tests on Travis CI
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
test
.editorconfig
.gitattributes
.gitignore
.jshintrc
.travis.yml
Gruntfile.js
README.md
package.json

README.md

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