Unverified Commit 16f53bc6 by Ben Petersen Committed by GitHub

Merge pull request #245 from benjaminapetersen/drop-phantom

Drop PhantomJS from Gruntfile, allow Chrome/Firefox from karma.conf.js
parents a7b3e406 deb518e1
...@@ -5,7 +5,12 @@ cache: ...@@ -5,7 +5,12 @@ cache:
directories: directories:
- node_modules - node_modules
- bower_components - bower_components
addons:
chrome: stable
before_script: before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 5 # give xvfb some time to start
- make build - make build
script: script:
- hack/test-headless.sh test - hack/test-headless.sh test
......
...@@ -61,8 +61,7 @@ module.exports = function (grunt) { ...@@ -61,8 +61,7 @@ module.exports = function (grunt) {
karma: { karma: {
unit: { unit: {
configFile: 'test/karma.conf.js', configFile: 'test/karma.conf.js',
singleRun: true, singleRun: true
browsers: ['PhantomJS']
} }
}, },
less: { less: {
......
...@@ -29,9 +29,9 @@ ...@@ -29,9 +29,9 @@
"grunt-ng-annotate": "^1.0.1", "grunt-ng-annotate": "^1.0.1",
"grunt-remove": "^0.1.0", "grunt-remove": "^0.1.0",
"karma": "0.12.23", "karma": "0.12.23",
"karma-chrome-launcher": "0.1.4", "karma-chrome-launcher": "^2.2.0",
"karma-coverage": "^1.1.1", "karma-coverage": "^1.1.1",
"karma-firefox-launcher": "0.1.3", "karma-firefox-launcher": "^1.0.1",
"karma-jasmine": "0.2.2", "karma-jasmine": "0.2.2",
"karma-junit-reporter": "0.2.2", "karma-junit-reporter": "0.2.2",
"karma-ng-html2js-preprocessor": "~0.1", "karma-ng-html2js-preprocessor": "~0.1",
......
...@@ -77,7 +77,7 @@ module.exports = function(config) { ...@@ -77,7 +77,7 @@ module.exports = function(config) {
// - PhantomJS // - PhantomJS
// - IE (only Windows) // - IE (only Windows)
// CLI --browsers Chrome,Firefox,Safari // CLI --browsers Chrome,Firefox,Safari
browsers: [process.env.TRAVIS ? 'Firefox' : 'Chrome'], browsers: [process.env.TRAVIS ? 'Chrome' : 'Chrome'],
// If browser does not capture in given timeout [ms], kill it // If browser does not capture in given timeout [ms], kill it
// CLI --capture-timeout 5000 // CLI --capture-timeout 5000
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment