mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 10:01:08 +08:00
ci: fix automated test workflow (#9982)
This commit is contained in:

committed by
Nathan Walker

parent
c67f5e19bf
commit
3772264751
@ -9,10 +9,23 @@ const kill = require('tree-kill');
|
||||
|
||||
const TIMEOUT_MS = 5 * 60 * 1000; // 5 minutes
|
||||
|
||||
const spawned_process = spawn('npm', ['start', `apps.automated.${process.argv[2]}`], {
|
||||
stdio: ['inherit', 'pipe', 'pipe']
|
||||
})
|
||||
const {stdout, stderr} = spawned_process
|
||||
const platform = process.argv[2];
|
||||
const spawned_process = spawn(
|
||||
"ns",
|
||||
[
|
||||
"--path=./apps/automated",
|
||||
"run",
|
||||
platform,
|
||||
"--no-hmr",
|
||||
"--force",
|
||||
// "--log=trace",
|
||||
"--timeout=600" // 10 minutes, booting avds on CI is very slow...
|
||||
],
|
||||
{
|
||||
stdio: ["inherit", "pipe", "pipe"],
|
||||
}
|
||||
);
|
||||
const { stdout, stderr } = spawned_process
|
||||
|
||||
stdout.pipe(process.stdout)
|
||||
stderr.pipe(process.stderr)
|
||||
|
Reference in New Issue
Block a user