Try to fix alpine integration tests

pull/367/head
ta264 4 years ago
parent a67dda87a8
commit d8cb86c5dd

@ -484,8 +484,9 @@ stages:
cp -r -v ${BUILD_ARTIFACTSTAGINGDIRECTORY}/bin/Readarr/. ./bin/ cp -r -v ${BUILD_ARTIFACTSTAGINGDIRECTORY}/bin/Readarr/. ./bin/
displayName: Move Package Contents displayName: Move Package Contents
- bash: | - bash: |
chmod a+x ${TESTSFOLDER}/test.sh cd ${TESTSFOLDER}
${TESTSFOLDER}/test.sh ${OSNAME} Integration Test chmod a+x test.sh
./test.sh ${OSNAME} Integration Test
displayName: Run Integration Tests displayName: Run Integration Tests
- task: PublishTestResults@2 - task: PublishTestResults@2
inputs: inputs:
@ -556,8 +557,9 @@ stages:
cp -r -v ${BUILD_ARTIFACTSTAGINGDIRECTORY}/bin/Readarr/. ./bin/ cp -r -v ${BUILD_ARTIFACTSTAGINGDIRECTORY}/bin/Readarr/. ./bin/
displayName: Move Package Contents displayName: Move Package Contents
- bash: | - bash: |
chmod a+x ${TESTSFOLDER}/test.sh cd ${TESTSFOLDER}
${TESTSFOLDER}/test.sh Linux Integration Test chmod a+x test.sh
./test.sh Linux Integration Test
displayName: Run Integration Tests displayName: Run Integration Tests
- task: PublishTestResults@2 - task: PublishTestResults@2
inputs: inputs:

@ -22,4 +22,9 @@
<ProjectReference Include="..\Readarr.Api.V1\Readarr.Api.V1.csproj" /> <ProjectReference Include="..\Readarr.Api.V1\Readarr.Api.V1.csproj" />
<ProjectReference Include="..\NzbDrone.Test.Common\Readarr.Test.Common.csproj" /> <ProjectReference Include="..\NzbDrone.Test.Common\Readarr.Test.Common.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<None Include="integration.runsettings">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project> </Project>

@ -0,0 +1,11 @@
<RunSettings>
<RunConfiguration>
<!-- 0 = As many processes as possible, limited by number of cores on machine, 1 = Sequential (1 process), 2-> Given number of processes up to limit by number of cores on machine-->
<MaxCpuCount>1</MaxCpuCount>
<!-- Disables in-assembly parallel execution, applies to both MSTest and NUnit -->
<DisableParallelization>true</DisableParallelization>
</RunConfiguration>
<NUnit>
<NumberOfTestWorkers>1</NumberOfTestWorkers>
</NUnit>
</RunSettings>

@ -49,6 +49,7 @@ if [ "$TYPE" = "Unit" ]; then
WHERE="$WHERE&Category!=IntegrationTest&Category!=AutomationTest" WHERE="$WHERE&Category!=IntegrationTest&Category!=AutomationTest"
elif [ "$TYPE" = "Integration" ] || [ "$TYPE" = "int" ] ; then elif [ "$TYPE" = "Integration" ] || [ "$TYPE" = "int" ] ; then
WHERE="$WHERE&Category=IntegrationTest" WHERE="$WHERE&Category=IntegrationTest"
VSTEST_PARAMS="$VSTEST_PARAMS --settings:$TEST_DIR/integration.runsettings"
elif [ "$TYPE" = "Automation" ] ; then elif [ "$TYPE" = "Automation" ] ; then
WHERE="$WHERE&Category=AutomationTest" WHERE="$WHERE&Category=AutomationTest"
else else

Loading…
Cancel
Save