Fix build for bad azure update

pull/4093/head
ta264 5 years ago
parent 6cb504cb08
commit 92f7b25117

@ -82,8 +82,8 @@ stages:
find ${OUTPUTFOLDER} -depth -empty -type d -exec rm -r "{}" \; find ${OUTPUTFOLDER} -depth -empty -type d -exec rm -r "{}" \;
find ${TESTSFOLDER} -type f ! -path "*/publish/*" -exec rm -rf {} \; find ${TESTSFOLDER} -type f ! -path "*/publish/*" -exec rm -rf {} \;
find ${TESTSFOLDER} -depth -empty -type d -exec rm -r "{}" \; find ${TESTSFOLDER} -depth -empty -type d -exec rm -r "{}" \;
ls -lR
displayName: Clean up intermediate output displayName: Clean up intermediate output
condition: and(succeeded(), ne(variables['osName'], 'Windows'))
- publish: $(outputFolder) - publish: $(outputFolder)
artifact: '$(osName)Backend' artifact: '$(osName)Backend'
displayName: Publish Backend displayName: Publish Backend
@ -355,6 +355,7 @@ stages:
condition: and(succeeded(), eq(variables['osName'], 'Mac')) condition: and(succeeded(), eq(variables['osName'], 'Mac'))
- bash: find ${TESTSFOLDER} -name "Radarr.Test.Dummy" -exec chmod a+x {} \; - bash: find ${TESTSFOLDER} -name "Radarr.Test.Dummy" -exec chmod a+x {} \;
displayName: Make Test Dummy Executable displayName: Make Test Dummy Executable
condition: and(succeeded(), ne(variables['osName'], 'Windows'))
- task: Bash@3 - task: Bash@3
displayName: Run Tests displayName: Run Tests
env: env:
@ -576,7 +577,6 @@ stages:
- bash: | - bash: |
mkdir -p ./bin/ mkdir -p ./bin/
cp -r -v ${BUILD_ARTIFACTSTAGINGDIRECTORY}/bin/Radarr/. ./bin/ cp -r -v ${BUILD_ARTIFACTSTAGINGDIRECTORY}/bin/Radarr/. ./bin/
ls -lR
displayName: Move Package Contents displayName: Move Package Contents
- task: Bash@3 - task: Bash@3
displayName: Run Integration Tests displayName: Run Integration Tests
@ -661,7 +661,6 @@ stages:
mv geckodriver _tests mv geckodriver _tests
displayName: Install Gecko Driver displayName: Install Gecko Driver
condition: and(succeeded(), ne(variables['osName'], 'Windows')) condition: and(succeeded(), ne(variables['osName'], 'Windows'))
- bash: ls -lR
- task: Bash@3 - task: Bash@3
displayName: Run Automation Tests displayName: Run Automation Tests
inputs: inputs:

@ -25,23 +25,6 @@ UpdateVersionNumber()
fi fi
} }
CleanFolder()
{
local path=$1
find $path -name "*.transform" -exec rm "{}" \;
echo "Removing FluentValidation.Resources files"
find $path -name "FluentValidation.resources.dll" -exec rm "{}" \;
find $path -name "App.config" -exec rm "{}" \;
echo "Removing vshost files"
find $path -name "*.vshost.exe" -exec rm "{}" \;
echo "Removing Empty folders"
find $path -depth -empty -type d -exec rm -r "{}" \;
}
LintUI() LintUI()
{ {
ProgressStart 'ESLint' ProgressStart 'ESLint'
@ -105,8 +88,6 @@ PackageFiles()
cp -r $outputFolder/Radarr.Update/$framework/$runtime/publish $folder/Radarr.Update cp -r $outputFolder/Radarr.Update/$framework/$runtime/publish $folder/Radarr.Update
cp -r $outputFolder/UI $folder cp -r $outputFolder/UI $folder
CleanFolder $folder
echo "Adding LICENSE" echo "Adding LICENSE"
cp LICENSE $folder cp LICENSE $folder
} }
@ -209,8 +190,6 @@ PackageTests()
unzip -o gecko.zip unzip -o gecko.zip
cp geckodriver.exe $testPackageFolder/netcoreapp3.1/win-x64/publish cp geckodriver.exe $testPackageFolder/netcoreapp3.1/win-x64/publish
CleanFolder $testPackageFolder
ProgressEnd 'Creating Test Package' ProgressEnd 'Creating Test Package'
} }

@ -4,7 +4,8 @@ TYPE=$2
COVERAGE=$3 COVERAGE=$3
WHERE="Category!=ManualTest" WHERE="Category!=ManualTest"
TEST_PATTERN="*Test.dll" TEST_PATTERN="*Test.dll"
ASSEMBLIES="" FILES=( "Radarr.Api.Test.dll" "Radarr.Automation.Test.dll" "Radarr.Common.Test.dll" "Radarr.Core.Test.dll" "Radarr.Host.Test.dll" "Radarr.Integration.Test.dll" "Radarr.Libraries.Test.dll" "Radarr.Mono.Test.dll" "Radarr.Update.Test.dll" "Radarr.Windows.Test.dll" )
ASSMEBLIES=""
TEST_LOG_FILE="TestLog.txt" TEST_LOG_FILE="TestLog.txt"
echo "test dir: $TEST_DIR" echo "test dir: $TEST_DIR"
@ -55,8 +56,8 @@ else
exit 2 exit 2
fi fi
for i in `find $TEST_DIR -name "$TEST_PATTERN"`; for i in "${FILES[@]}";
do ASSEMBLIES="$ASSEMBLIES $i" do ASSEMBLIES="$ASSEMBLIES $TEST_DIR/$i"
done done
DOTNET_PARAMS="$ASSEMBLIES --TestCaseFilter:$WHERE $VSTEST_PARAMS" DOTNET_PARAMS="$ASSEMBLIES --TestCaseFilter:$WHERE $VSTEST_PARAMS"

Loading…
Cancel
Save