c7e5283b8b
* add browserstack * check for data before removing root token * fix root prefix and select by attributes for ie11 * use objectAt for ie11 * use blobs instead of files for ie11 * manually round cirucmference for ie11 * skip csp test on ie11 * skip tests in ie11 * include polyfill for CI * remove on exit hooks * update which browserstack tests are run * remove ie check since we are not running these tests in ie * remove ie check since we are not running these tests in ie
38 lines
874 B
JavaScript
38 lines
874 B
JavaScript
#!/usr/bin/env node
|
|
/* eslint-env node */
|
|
/* eslint-disable no-console */
|
|
|
|
const execa = require('execa');
|
|
const chalk = require('chalk');
|
|
|
|
function run(command, args = []) {
|
|
console.log(chalk.dim('$ ' + command + ' ' + args.join(' ')));
|
|
|
|
let p = execa(command, args);
|
|
p.stdout.pipe(process.stdout);
|
|
p.stderr.pipe(process.stderr);
|
|
|
|
return p;
|
|
}
|
|
|
|
(async function() {
|
|
await run('ember', ['browserstack:connect']);
|
|
try {
|
|
try {
|
|
await run('ember', ['test', '-f=secrets/secret/create', '-c', 'testem.browserstack.js']);
|
|
|
|
console.log('success');
|
|
process.exit(0);
|
|
} finally {
|
|
if (process.env.TRAVIS_JOB_NUMBER) {
|
|
await run('ember', ['browserstack:results']);
|
|
}
|
|
await run('ember', ['browserstack:disconnect']);
|
|
}
|
|
} catch (error) {
|
|
console.log('error');
|
|
console.log(error);
|
|
process.exit(1);
|
|
}
|
|
})();
|