Skip to content

Commit

Permalink
Prepare for travis ci testing
Browse files Browse the repository at this point in the history
  • Loading branch information
andreassolberg committed Dec 5, 2014
1 parent ae55deb commit 2664cfe
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"scripts": {
"test": "grunt travis --verbose"
}
19 changes: 17 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,29 @@ module.exports = function(grunt) {
preserveLicenseComments: false
}
}
},
jshint: {
// define the files to lint
files: ['gruntfile.js', 'src/**/*.js', 'test/**/*.js'],
// configure JSHint (documented at http://www.jshint.com/docs/)
options: {
// more options here if you want to override JSHint defaults
globals: {
jQuery: true,
console: true,
module: true
}
}
}
});


// grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-requirejs');
grunt.loadNpmTasks('grunt-contrib-jshint');

grunt.registerTask('travis', ['requirejs', 'jshint']);
grunt.registerTask('default', ['requirejs', 'jshint']);

// Default task(s).
grunt.registerTask('default', ['requirejs']);

};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "OAuth 2.0 implementation in Javascript",
"main": "src/jso.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "grunt travis --verbose"
},
"repository": {
"type": "git",
Expand All @@ -21,7 +21,7 @@
],
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-nodeunit": "~0.4.1",
"grunt-requirejs": "*"
},
Expand Down

0 comments on commit 2664cfe

Please sign in to comment.