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:
Pranav K 2019-01-31 14:09:34 -08:00
parent dbc4aaa298
commit 51ec523d9e
2 changed files with 7 additions and 0 deletions

View File

@ -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>

View File

@ -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"));