diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..85fc71b2d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,5 @@ +language: node_js +node_js: + - "0.10" + - "0.8" + diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 000000000..608972049 --- /dev/null +++ b/Gruntfile.js @@ -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']); + +}; diff --git a/package.json b/package.json index 4002ec21c..0d0cec7d9 100644 --- a/package.json +++ b/package.json @@ -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" },