Skip to content

Commit

Permalink
Updated testing configuration to work in both TravisCI and Drone.io
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdobry committed Jun 15, 2013
1 parent b984e11 commit 5965937
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ node_js:
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script: "npm test_travis"
10 changes: 7 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ module.exports = function (grunt) {
dev: {
browsers: ['Chrome']
},
CI: {
browsers: ['Firefox', 'Chrome']
drone: {
browsers: ['Firefox', 'Chrome', 'PhantomJS']
},
travis: {
browsers: ['Firefox', 'PhantomJS']
}
},
jsdoc : {
Expand All @@ -71,5 +74,6 @@ module.exports = function (grunt) {
grunt.registerTask('build', ['clean', 'jshint', 'copy', 'uglify', 'karma:dev']);
grunt.registerTask('build:all', ['build', 'jsdoc']);

grunt.registerTask('CI', ['clean', 'jshint', 'copy', 'uglify', 'karma:CI']);
grunt.registerTask('drone', ['clean', 'jshint', 'copy', 'uglify', 'karma:drone']);
grunt.registerTask('travis', ['clean', 'jshint', 'copy', 'uglify', 'karma:travis']);
};
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"grunt-cli": "~0.1.8"
},
"scripts": {
"test": "node node_modules/grunt-cli/bin/grunt CI",
"test_dev": "node node_modules/grunt-cli/bin/grunt build"
"test": "node node_modules/grunt-cli/bin/grunt build",
"test_drone": "node node_modules/grunt-cli/bin/grunt drone",
"test_travis": "node node_modules/grunt-cli/bin/grunt travis"
}
}

0 comments on commit 5965937

Please sign in to comment.