Update package.json to only use PhantomJS in travis
This commit is contained in:
parent
1137da6ee8
commit
1fffc1bc9f
12
Gruntfile.js
12
Gruntfile.js
|
@ -4,10 +4,15 @@ module.exports = function (grunt) {
|
||||||
|
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
karma: {
|
karma: {
|
||||||
unit: {
|
phantom: {
|
||||||
configFile: "karma.conf.js",
|
configFile: "karma.conf.js",
|
||||||
singleRun: true,
|
singleRun: true,
|
||||||
browsers: ["PhantomJS", "Chrome"]
|
browsers: ["PhantomJS"]
|
||||||
|
},
|
||||||
|
chrome: {
|
||||||
|
configFile: "karma.conf.js",
|
||||||
|
singleRun: true,
|
||||||
|
browsers: ["Chrome"]
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
configFile: "karma.conf.js",
|
configFile: "karma.conf.js",
|
||||||
|
@ -28,5 +33,6 @@ module.exports = function (grunt) {
|
||||||
|
|
||||||
grunt.registerTask('default', ['typescript']);
|
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']);
|
||||||
};
|
};
|
|
@ -25,6 +25,6 @@
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "./node_modules/.bin/grunt test"
|
"test": "./node_modules/.bin/grunt test:travis"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue