Skip to content

Commit

Permalink
Use a more recent Android for integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fpagnoux committed Aug 28, 2018
1 parent bac5bba commit 85641e0
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions tests/integration/config-ci.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
// this file is for use in CircleCI continuous integration environment

var browserName = ['chrome', 'firefox', 'internet explorer', 'android'][process.env.CIRCLE_NODE_INDEX];
var capabilities = [
{browserName: 'chrome'},
{browserName: 'firefox'},
{browserName: 'internet explorer'},
{
deviceName: 'Samsung Galaxy S6 GoogleAPI Emulator',
browserName: 'Chrome',
platformName: 'Android',
platformVersion: '7.0'
}
][process.env.CIRCLE_NODE_INDEX];

module.exports = {
seleniumServerURL: {
hostname: 'ondemand.saucelabs.com',
port: 80
},
driverCapabilities: {
'tunnel-identifier': 'circle-' + process.env.CIRCLE_BUILD_NUM + '-' + process.env.CIRCLE_NODE_INDEX,
browserName: browserName
},
driverCapabilities: Object.assign({},
capabilities,
{'tunnel-identifier': 'circle-' + process.env.CIRCLE_BUILD_NUM + '-' + process.env.CIRCLE_NODE_INDEX}
),
tags: [ 'circle-ci', '#' + process.env.CIRCLE_BUILD_NUM ],
views: [ 'Verbose', 'SauceLabs' ],
quit: 'always', // avoid wasting 90 seconds on SauceLabs
Expand Down

0 comments on commit 85641e0

Please sign in to comment.