Skip to content

Commit

Permalink
test(client): Switch to browserstack
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Feb 12, 2016
1 parent 297d394 commit d353db8
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 68 deletions.
14 changes: 0 additions & 14 deletions circle.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@
"jasmine-core": "^2.3.4",
"json3": "^3.3.2",
"karma-browserify": "^5.0.1",
"karma-browserstack-launcher": "0.1.9",
"karma-browserstack-launcher": "^0.1.10",
"karma-chrome-launcher": "*",
"karma-coffee-preprocessor": "*",
"karma-commonjs": "*",
Expand Down
113 changes: 60 additions & 53 deletions test/client/karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,65 +1,68 @@
var TRAVIS_WITHOUT_SAUCE = process.env.TRAVIS_SECURE_ENV_VARS === 'false'
var TRAVIS_WITHOUT_BS = process.env.TRAVIS_SECURE_ENV_VARS === 'false'

var launchers = {
sl_chrome: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Windows 7',
version: '47'
bs_chrome: {
base: 'BrowserStack',
browser: 'chrome',
os: 'Windows',
os_version: '10'
},
sl_firefox: {
base: 'SauceLabs',
browserName: 'firefox',
version: '43'
bs_firefox: {
base: 'BrowserStack',
browser: 'firefox',
os: 'Windows',
os_version: '10'
},
sl_safari: {
base: 'SauceLabs',
browserName: 'safari',
version: '9',
platform: 'OS X 10.11'
bs_safari: {
base: 'BrowserStack',
browser: 'safari',
browser_version: '9.0',
os_version: 'El Capitan',
os: 'OS X'
},
sl_ie_11: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 8.1',
version: '11'
bs_ie_11: {
base: 'BrowserStack',
browser: 'ie',
browser_version: '11.0',
os: 'Windows',
os_version: '10'
},
sl_ie_10: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 7',
version: '10'
bs_ie_10: {
base: 'BrowserStack',
browser: 'ie',
browser_version: '10.0',
os: 'Windows',
os_version: '8'
},
sl_ie_9: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 7',
version: '9'
},
sl_ie_8: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows XP',
version: '8'
},
sl_ie_7: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows XP',
version: '7'
}// ,
// sl_ie_6: {
// base: 'SauceLabs',
// browserName: 'internet explorer',
// platform: 'Windows XP',
// version: '6'
bs_ie_9: {
base: 'BrowserStack',
browser: 'ie',
browser_version: '9.0',
os: 'Windows',
os_version: '7'
}
// TODO: Figure out why these fail on browserstack
// ,
// bs_ie_8: {
// base: 'BrowserStack',
// browser: 'ie',
// browser_version: '8.0',
// os: 'Windows',
// os_version: '7'
// },
// bs_ie_7: {
// base: 'BrowserStack',
// browser: 'ie',
// browser_version: '7.0',
// os: 'Windows',
// os_version: 'XP'
// }
}

var browsers = []

if (process.env.TRAVIS) {
if (TRAVIS_WITHOUT_SAUCE) {
if (TRAVIS_WITHOUT_BS) {
browsers.push('Firefox')
} else {
browsers = Object.keys(launchers)
Expand Down Expand Up @@ -91,7 +94,7 @@ module.exports = function (config) {
// use dots reporter, as travis terminal does not support escaping sequences
// possible values: 'dots', 'progress'
// CLI --reporters progress
reporters: ['progress', 'junit', 'saucelabs'],
reporters: ['progress', 'junit'],

junitReporter: {
// will be resolved to basePath (in the same way as files/exclude patterns)
Expand Down Expand Up @@ -146,11 +149,15 @@ module.exports = function (config) {
'karma-firefox-launcher',
'karma-junit-reporter',
'karma-browserify',
'karma-sauce-launcher'
'karma-browserstack-launcher'
],

concurrency: 2,
concurrency: 3,

forceJSONP: true,

forceJSONP: true
browserStack: {
project: 'Karma'
}
})
}

0 comments on commit d353db8

Please sign in to comment.