Skip to content

Commit fe9b686

Browse files
committed
Merge pull request niklasvh#5 from sanemat/chore/travis-node
Add travis-ci targets
2 parents 8e5086c + 359c074 commit fe9b686

File tree

4 files changed

+53
-41
lines changed

4 files changed

+53
-41
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,9 @@
22
language: node_js
33
node_js:
44
- '0.10'
5+
- '0.12'
6+
- 'iojs-1'
7+
- 'iojs-2'
8+
- 'iojs-3'
59
before_script:
610
- npm install

Gruntfile.js

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
module.exports = function(grunt) {
2+
"use strict";
3+
// Project configuration.
4+
grunt.initConfig({
5+
pkg: grunt.file.readJSON('package.json'),
6+
nodeunit: {
7+
all: ['test/**/*.js']
8+
},
9+
lint: {
10+
files: ['Gruntfile.js', 'lib/**/*.js', 'test/**/*.js']
11+
},
12+
watch: {
13+
files: '<%= lint.files %>',
14+
tasks: 'default'
15+
},
16+
jshint: {
17+
options: {
18+
curly: true,
19+
eqeqeq: true,
20+
immed: true,
21+
latedef: true,
22+
newcap: true,
23+
noarg: true,
24+
sub: true,
25+
undef: true,
26+
boss: true,
27+
eqnull: true,
28+
node: true,
29+
globals: {
30+
exports: true
31+
}
32+
},
33+
all: '<%= lint.files %>'
34+
}
35+
});
36+
37+
grunt.loadNpmTasks('grunt-contrib-nodeunit');
38+
grunt.loadNpmTasks('grunt-contrib-jshint');
39+
grunt.loadNpmTasks('grunt-contrib-watch');
40+
// Default task.
41+
grunt.registerTask('default', 'nodeunit');
42+
43+
};

grunt.js

Lines changed: 0 additions & 39 deletions
This file was deleted.

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,14 @@
2626
"node": ">= 0.6.0"
2727
},
2828
"scripts": {
29-
"test": "grunt test"
29+
"test": "grunt nodeunit"
3030
},
3131
"devDependencies": {
32-
"grunt": "~0.3.17"
32+
"grunt": "^0.4.5",
33+
"grunt-cli": "^0.1.13",
34+
"grunt-contrib-jshint": "^0.11.2",
35+
"grunt-contrib-nodeunit": "^0.4.1",
36+
"grunt-contrib-watch": "^0.6.1"
3337
},
3438
"keywords": []
3539
}

0 commit comments

Comments
 (0)