Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the same output streams as the parent process #19

Merged
merged 1 commit into from
May 16, 2023
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 13 additions & 5 deletions src/docker.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ describe('dockerBuildpackCompile', () => {
[
'pull',
'particle/buildpack-particle-firmware:4.0.2-argon'
]
],
{ 'stdio': 'inherit' }
]);
expect(execa.mock.calls[1]).toEqual([
'docker',
Expand All @@ -101,7 +102,8 @@ describe('dockerBuildpackCompile', () => {
'-e',
'PLATFORM_ID=12',
'particle/buildpack-particle-firmware:4.0.2-argon'
]]);
],
{ 'stdio': 'inherit' }]);
expect(execa.mock.calls[2]).toEqual([
'mv',
[
Expand Down Expand Up @@ -133,7 +135,9 @@ describe('dockerBuildpackCompile', () => {
'-e',
'PLATFORM_ID=12',
'particle/buildpack-particle-firmware:4.0.2-argon'
]]);
],
{ 'stdio': 'inherit' }
]);
expect(execa.mock.calls[2]).toEqual([
'mv',
[
Expand Down Expand Up @@ -167,7 +171,9 @@ describe('dockerBuildpackCompile', () => {
'-e',
'PLATFORM_ID=12',
'particle/buildpack-particle-firmware:4.0.2-argon'
]]);
],
{ 'stdio': 'inherit' }
]);
expect(execa.mock.calls[2]).toEqual([
'mv',
[
Expand Down Expand Up @@ -199,7 +205,9 @@ describe('dockerBuildpackCompile', () => {
'-e',
'PLATFORM_ID=12',
'particle/buildpack-particle-firmware:4.0.2-argon'
]]);
],
{ 'stdio': 'inherit' }
]);
expect(execa.mock.calls[2]).toEqual([
'mv',
[
Expand Down
4 changes: 2 additions & 2 deletions src/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export async function dockerBuildpackCompile(
const dockerPull = await execa('docker', [
'pull',
`particle/buildpack-particle-firmware:${targetVersion}-${platform}`
]);
], { stdio: 'inherit' });
info(dockerPull.stdout);

const destDir = 'output';
Expand Down Expand Up @@ -60,7 +60,7 @@ export async function dockerBuildpackCompile(
`PLATFORM_ID=${platformId}`,
`particle/buildpack-particle-firmware:${targetVersion}-${platform}`
];
const dockerRun = await execa('docker', args);
const dockerRun = await execa('docker', args, { stdio: 'inherit' });
info(dockerRun.stdout);

// move output/firmware.bin to firmware-<platform>-<version>.bin
Expand Down