-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1420 from glimmerjs/chore/cleanup-syntax
- Loading branch information
Showing
27 changed files
with
77 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// @ts-check | ||
|
||
import chalk from 'chalk'; | ||
import { execa } from 'execa'; | ||
|
||
/** | ||
* @param {string} command | ||
* @param {string[]} args | ||
* @returns {Promise<import('execa').ExecaReturnValue<string>>} | ||
*/ | ||
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 { | ||
// 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', [ | ||
'ci', | ||
'-f', | ||
'testem-browserstack.js', | ||
'--host', | ||
'127.0.0.1', | ||
'--port', | ||
'7774', | ||
]); | ||
|
||
console.log('success'); | ||
// eslint-disable-next-line n/no-process-exit | ||
process.exit(0); | ||
} finally { | ||
if (process.env.GITHUB_RUN_ID) { | ||
await run('ember', ['browserstack:results']); | ||
} | ||
await run('ember', ['browserstack:disconnect']); | ||
} | ||
} catch (error) { | ||
console.log('error'); | ||
console.log(error); | ||
// eslint-disable-next-line n/no-process-exit | ||
process.exit(1); | ||
} | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
304995 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
function cleanup() { | ||
pnpm ember browserstack:disconnect | ||
} | ||
|
||
export BROWSERSTACK_ACCESS_KEY="xbxZSukWqzaEEWTg9HQg" | ||
export BROWSERSTACK_USERNAME="wycats" | ||
|
||
trap cleanup EXIT | ||
trap cleanup SIGINT | ||
|
||
pnpm ember build --environment=development | ||
pnpm ember browserstack:connect | ||
pnpm ember test --path ./dist --test-port=7774 --host 127.0.0.1 --config-file=browserstack.testem.js | ||
pnpm ember browserstack:results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.