Attempt to install chromium as part of restore instead of running the CORS tests
One more go at https://github.com/aspnet/AspNetCore-Internal/issues/1619
This commit is contained in:
parent
dbc4aaa298
commit
51ec523d9e
|
|
@ -12,5 +12,10 @@
|
|||
<IsTestProject>false</IsTestProject>
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="InstallPuppeteer" BeforeTargets="Restore">
|
||||
<!-- Explicitly install puppeteer. This will install the bundled Chromium as part of restore instead of as part of execution -->
|
||||
<Exec Command="npm install puppeteer" />
|
||||
</Target>
|
||||
|
||||
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.targets))\Directory.Build.targets" />
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -48,6 +48,8 @@ namespace FunctionalTests
|
|||
Arguments = "test --no-watchman",
|
||||
};
|
||||
}
|
||||
// Disallow the test from downloading \ installing chromium.
|
||||
processStartInfo.Environment["PUPPETEER_SKIP_CHROMIUM_DOWNLOAD"] = "true";
|
||||
|
||||
// Act
|
||||
var result = await ProcessManager.RunProcessAsync(processStartInfo, loggerFactory.CreateLogger("ProcessManager"));
|
||||
|
|
|
|||
Loading…
Reference in New Issue