1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-22 07:42:28 +00:00

Try to fix alpine integration tests

This commit is contained in:
ta264 2020-08-12 22:16:59 +01:00
parent c40f87ce2f
commit a47854103c
4 changed files with 23 additions and 4 deletions

View file

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

View file

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

View file

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

View file

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