1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Add grunt build and travis-ci

This commit is contained in:
Nick O'Leary 2014-03-31 13:31:31 +01:00
parent e7dcdb075a
commit 9a7042b8dc
3 changed files with 31 additions and 0 deletions

5
.travis.yml Normal file
View File

@ -0,0 +1,5 @@
language: node_js
node_js:
- "0.10"
- "0.8"

24
Gruntfile.js Normal file
View File

@ -0,0 +1,24 @@
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
simplemocha: {
options: {
globals: ['expect'],
timeout: 3000,
ignoreLeaks: false,
ui: 'bdd',
reporter: 'tap'
},
all: { src: ['test/*.js'] }
}
});
// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-simple-mocha');
// Default task(s).
grunt.registerTask('default', ['simplemocha']);
};

View File

@ -41,6 +41,8 @@
"mkdirp":"~0.3.5"
},
"devDependencies": {
"grunt": "~0.4.4",
"grunt-simple-mocha": "^0.4.0",
"mocha": "~1.12.0",
"should": "~1.2.2"
},