Browse Source

Update package.json to only use PhantomJS in travis

pull/4/head
Kegan Myers 8 years ago
parent
commit
1fffc1bc9f
  1. 12
      Gruntfile.js
  2. 2
      package.json

12
Gruntfile.js

@ -4,10 +4,15 @@ module.exports = function (grunt) {
grunt.initConfig({
karma: {
unit: {
phantom: {
configFile: "karma.conf.js",
singleRun: true,
browsers: ["PhantomJS", "Chrome"]
browsers: ["PhantomJS"]
},
chrome: {
configFile: "karma.conf.js",
singleRun: true,
browsers: ["Chrome"]
},
watch: {
configFile: "karma.conf.js",
@ -28,5 +33,6 @@ module.exports = function (grunt) {
grunt.registerTask('default', ['typescript']);
grunt.registerTask('test', ['typescript', 'karma:unit'])
grunt.registerTask('test', ['typescript', 'karma:phantom', 'karma:chrome']);
grunt.registerTask('test:travis', ['typescript', 'karma:phantom']);
};

2
package.json

@ -25,6 +25,6 @@
},
"license": "MIT",
"scripts": {
"test": "./node_modules/.bin/grunt test"
"test": "./node_modules/.bin/grunt test:travis"
}
}