Skip to content

Commit 8ccd315

Browse files
Merge pull request #6 from Nathan-Smith/travis-ci
Travis CI
2 parents cab89d4 + fa3cd5b commit 8ccd315

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: node_js
2+
node_js:
3+
- "0.10"
4+
before_install:
5+
- npm install -g grunt-cli
6+
notifications:
7+
email: false

Gruntfile.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ module.exports = function (grunt) {
1111
vows: {
1212
src: [
1313
'test/*.js'
14-
]
14+
],
15+
options: {
16+
reporter: "spec"
17+
}
1518
},
1619

1720
jslint: {
@@ -111,4 +114,8 @@ module.exports = function (grunt) {
111114
});
112115

113116
grunt.registerTask('default', 'jslint');
117+
118+
grunt.registerTask('travis', [
119+
'jslint', 'vows'
120+
]);
114121
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"node": "*"
2626
},
2727
"scripts": {
28-
"test": "grunt jslint && node node_modules/vows/bin/vows test/*.js --spec"
28+
"test": "grunt travis"
2929
},
3030
"keywords": [
3131
"cpplint",

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# node-cpplint
1+
# node-cpplint [![Build Status](https://secure.travis-ci.org/stephenmathieson/node-cpplint.svg?branch=master)](http://travis-ci.org/stephenmathieson/node-cpplint) [![Dependency Status](https://david-dm.org/stephenmathieson/node-cpplint.svg)](https://david-dm.org/stephenmathieson/node-cpplint) [![devDependency Status](https://david-dm.org/stephenmathieson/node-cpplint/dev-status.svg)](https://david-dm.org/stephenmathieson/node-cpplint#info=devDependencies)
22

33
Validates CPP files with Google's [cpplint](http://google-styleguide.googlecode.com/svn/trunk/cpplint/cpplint.py)
44

0 commit comments

Comments
 (0)