2016-11-14 14:16:51 +01:00
|
|
|
/* eslint-env node */
|
2017-07-31 11:38:46 +02:00
|
|
|
/* eslint-disable camelcase */
|
2019-03-11 16:31:23 +01:00
|
|
|
|
|
|
|
const isCronBuild = process.env.TRAVIS_EVENT_TYPE === 'cron';
|
|
|
|
|
|
|
|
let launch_in_ci = ['Chrome'];
|
|
|
|
|
|
|
|
// we only test Firefox in nightly builds on CI to keep push/PR build times lower
|
|
|
|
if (isCronBuild) {
|
|
|
|
launch_in_ci.push('Firefox');
|
|
|
|
}
|
|
|
|
|
2016-03-01 08:38:03 +01:00
|
|
|
module.exports = {
|
2017-07-31 11:38:46 +02:00
|
|
|
framework: 'mocha',
|
|
|
|
test_page: 'tests/index.html?hidepassed',
|
|
|
|
disable_watching: true,
|
2019-03-11 19:16:01 +01:00
|
|
|
parallel: process.env.EMBER_EXAM_SPLIT_COUNT || 1,
|
2019-03-11 16:31:23 +01:00
|
|
|
launch_in_ci,
|
2017-07-31 11:38:46 +02:00
|
|
|
launch_in_dev: [
|
2016-03-01 08:38:03 +01:00
|
|
|
'Chrome',
|
|
|
|
'Firefox'
|
2017-09-02 11:19:07 +02:00
|
|
|
],
|
|
|
|
browser_args: {
|
2017-10-12 17:42:10 +02:00
|
|
|
Chrome: {
|
2019-01-02 10:58:55 +01:00
|
|
|
ci: [
|
2018-02-28 18:31:43 +01:00
|
|
|
// --no-sandbox is needed when running Chrome inside a container
|
2019-01-02 10:58:55 +01:00
|
|
|
process.env.CI ? '--no-sandbox' : null,
|
2017-09-02 11:19:07 +02:00
|
|
|
'--headless',
|
2019-01-02 10:58:55 +01:00
|
|
|
'--disable-dev-shm-usage',
|
|
|
|
'--disable-software-rasterizer',
|
|
|
|
'--mute-audio',
|
2017-12-13 13:27:15 +01:00
|
|
|
'--remote-debugging-port=0',
|
2017-09-02 11:19:07 +02:00
|
|
|
'--window-size=1440,900'
|
2018-02-28 18:31:43 +01:00
|
|
|
].filter(Boolean)
|
2019-03-11 16:02:32 +01:00
|
|
|
},
|
|
|
|
Firefox: {
|
|
|
|
ci: ['-headless']
|
2017-09-02 11:19:07 +02:00
|
|
|
}
|
|
|
|
}
|
2016-03-01 08:38:03 +01:00
|
|
|
};
|