Skip to content

Commit 92f7b25

Browse files
committed
Fix build for bad azure update
1 parent 6cb504c commit 92f7b25

File tree

3 files changed

+6
-27
lines changed

3 files changed

+6
-27
lines changed

azure-pipelines.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ stages:
8282
find ${OUTPUTFOLDER} -depth -empty -type d -exec rm -r "{}" \;
8383
find ${TESTSFOLDER} -type f ! -path "*/publish/*" -exec rm -rf {} \;
8484
find ${TESTSFOLDER} -depth -empty -type d -exec rm -r "{}" \;
85-
ls -lR
8685
displayName: Clean up intermediate output
86+
condition: and(succeeded(), ne(variables['osName'], 'Windows'))
8787
- publish: $(outputFolder)
8888
artifact: '$(osName)Backend'
8989
displayName: Publish Backend
@@ -355,6 +355,7 @@ stages:
355355
condition: and(succeeded(), eq(variables['osName'], 'Mac'))
356356
- bash: find ${TESTSFOLDER} -name "Radarr.Test.Dummy" -exec chmod a+x {} \;
357357
displayName: Make Test Dummy Executable
358+
condition: and(succeeded(), ne(variables['osName'], 'Windows'))
358359
- task: Bash@3
359360
displayName: Run Tests
360361
env:
@@ -576,7 +577,6 @@ stages:
576577
- bash: |
577578
mkdir -p ./bin/
578579
cp -r -v ${BUILD_ARTIFACTSTAGINGDIRECTORY}/bin/Radarr/. ./bin/
579-
ls -lR
580580
displayName: Move Package Contents
581581
- task: Bash@3
582582
displayName: Run Integration Tests
@@ -661,7 +661,6 @@ stages:
661661
mv geckodriver _tests
662662
displayName: Install Gecko Driver
663663
condition: and(succeeded(), ne(variables['osName'], 'Windows'))
664-
- bash: ls -lR
665664
- task: Bash@3
666665
displayName: Run Automation Tests
667666
inputs:

build.sh

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,6 @@ UpdateVersionNumber()
2525
fi
2626
}
2727

28-
CleanFolder()
29-
{
30-
local path=$1
31-
32-
find $path -name "*.transform" -exec rm "{}" \;
33-
34-
echo "Removing FluentValidation.Resources files"
35-
find $path -name "FluentValidation.resources.dll" -exec rm "{}" \;
36-
find $path -name "App.config" -exec rm "{}" \;
37-
38-
echo "Removing vshost files"
39-
find $path -name "*.vshost.exe" -exec rm "{}" \;
40-
41-
echo "Removing Empty folders"
42-
find $path -depth -empty -type d -exec rm -r "{}" \;
43-
}
44-
4528
LintUI()
4629
{
4730
ProgressStart 'ESLint'
@@ -105,8 +88,6 @@ PackageFiles()
10588
cp -r $outputFolder/Radarr.Update/$framework/$runtime/publish $folder/Radarr.Update
10689
cp -r $outputFolder/UI $folder
10790

108-
CleanFolder $folder
109-
11091
echo "Adding LICENSE"
11192
cp LICENSE $folder
11293
}
@@ -209,8 +190,6 @@ PackageTests()
209190
unzip -o gecko.zip
210191
cp geckodriver.exe $testPackageFolder/netcoreapp3.1/win-x64/publish
211192

212-
CleanFolder $testPackageFolder
213-
214193
ProgressEnd 'Creating Test Package'
215194
}
216195

test.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ TYPE=$2
44
COVERAGE=$3
55
WHERE="Category!=ManualTest"
66
TEST_PATTERN="*Test.dll"
7-
ASSEMBLIES=""
7+
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" )
8+
ASSMEBLIES=""
89
TEST_LOG_FILE="TestLog.txt"
910

1011
echo "test dir: $TEST_DIR"
@@ -55,8 +56,8 @@ else
5556
exit 2
5657
fi
5758

58-
for i in `find $TEST_DIR -name "$TEST_PATTERN"`;
59-
do ASSEMBLIES="$ASSEMBLIES $i"
59+
for i in "${FILES[@]}";
60+
do ASSEMBLIES="$ASSEMBLIES $TEST_DIR/$i"
6061
done
6162

6263
DOTNET_PARAMS="$ASSEMBLIES --TestCaseFilter:$WHERE $VSTEST_PARAMS"

0 commit comments

Comments
 (0)