Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions bin/run-browserstack-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,24 @@ async function run(command, args = []) {
// Calling testem directly here instead of `ember test` so that
// we do not have to do a double build (by the time this is run
// we have already ran `ember build`).
await run('testem', [
const testemArgs = [
'ci',
'-f',
'testem.browserstack.js',
'--host',
'127.0.0.1',
'--port',
'7774',
]);
];

// Absorb flaky single-launcher BrowserStack failures so they
// don't fail otherwise-green CI.
try {
await run('testem', testemArgs);
} catch (e) {
console.log(chalk.yellow(`testem ci failed (${e.shortMessage}); retrying once.`));
await run('testem', testemArgs);
}

console.log('success');
process.exit(0); // eslint-disable-line n/no-process-exit
Expand Down
Loading