Skip to content

Commit

Permalink
Run on CI?
Browse files Browse the repository at this point in the history
  • Loading branch information
maraf committed Jan 13, 2022
1 parent e02e7d1 commit 155a424
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
</PropertyGroup>

<PropertyGroup Condition="'$(TargetOS)' == 'Browser'">
<!-- This doesn't run on V8 because it lacks websocket support -->
<Scenario>WasmTestOnBrowser</Scenario>
<TestArchiveTestsRoot>$(TestArchiveRoot)browseronly/</TestArchiveTestsRoot>
<TestArchiveTestsRoot>$(TestArchiveRoot)browserornodejs/</TestArchiveTestsRoot>
<TestArchiveTestsDir>$(TestArchiveTestsRoot)$(OSPlatformConfig)/</TestArchiveTestsDir>
<DefineConstants>$(DefineConstants);TARGET_BROWSER</DefineConstants>
</PropertyGroup>
Expand All @@ -25,14 +26,18 @@
<ItemGroup Condition="'$(Scenario)' == 'WasmTestOnNodeJS' and '$(OS)' != 'Windows_NT'">
<!-- WebSocket tests use self-signed certificates for wss protocol that are refused by NodeJS -->
<SetScriptCommands Include="export NODE_TLS_REJECT_UNAUTHORIZED=0" />
<HelixPreCommand Include="export NODE_TLS_REJECT_UNAUTHORIZED=0" />
<!-- Restore NPM packages -->
<RunScriptCommands Include="pushd $EXECUTION_DIR &amp;&amp; npm ci &amp;&amp; popd" />
<HelixPreCommand Include="npm ci" />
</ItemGroup>
<ItemGroup Condition="'$(Scenario)' == 'WasmTestOnNodeJS' and '$(OS)' == 'Windows_NT'">
<!-- WebSocket tests use self-signed certificates for wss protocol that are refused by NodeJS -->
<SetScriptCommands Include="set &quot;NODE_TLS_REJECT_UNAUTHORIZED=0&quot;" />
<HelixPreCommand Include="set &quot;NODE_TLS_REJECT_UNAUTHORIZED=0&quot;" />
<!-- Restore NPM packages -->
<RunScriptCommands Include="cmd /c &quot;cd %EXECUTION_DIR% &amp;&amp; npm ci&quot;" />
<HelixPreCommand Include="cmd /c &quot;npm ci&quot;" />
</ItemGroup>

<!-- Browser specific files -->
Expand Down

0 comments on commit 155a424

Please sign in to comment.