mirror of
https://github.com/fergalmoran/Readarr.git
synced 2025-12-22 09:29:59 +00:00
Try to fix windows automation tests
This commit is contained in:
@@ -579,17 +579,14 @@ stages:
|
|||||||
osName: 'Linux'
|
osName: 'Linux'
|
||||||
imageName: 'ubuntu-18.04'
|
imageName: 'ubuntu-18.04'
|
||||||
pattern: 'Readarr.**.linux-core-x64.tar.gz'
|
pattern: 'Readarr.**.linux-core-x64.tar.gz'
|
||||||
failBuild: true
|
|
||||||
Mac:
|
Mac:
|
||||||
osName: 'Mac'
|
osName: 'Mac'
|
||||||
imageName: 'macos-10.14' # Fails due to firefox not being installed on image
|
imageName: 'macos-10.14'
|
||||||
pattern: 'Readarr.**.osx-core-x64.tar.gz'
|
pattern: 'Readarr.**.osx-core-x64.tar.gz'
|
||||||
failBuild: false
|
|
||||||
Windows:
|
Windows:
|
||||||
osName: 'Windows'
|
osName: 'Windows'
|
||||||
imageName: 'windows-2019'
|
imageName: 'windows-2019'
|
||||||
pattern: 'Readarr.**.windows-core-x64.zip'
|
pattern: 'Readarr.**.windows-core-x64.zip'
|
||||||
failBuild: $(failOnAutomationFailure)
|
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: $(imageName)
|
vmImage: $(imageName)
|
||||||
@@ -624,9 +621,9 @@ stages:
|
|||||||
displayName: Move Package Contents
|
displayName: Move Package Contents
|
||||||
- bash: |
|
- bash: |
|
||||||
if [[ $OSNAME == "Mac" ]]; then
|
if [[ $OSNAME == "Mac" ]]; then
|
||||||
url=https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-macos.tar.gz
|
url=https://github.com/mozilla/geckodriver/releases/download/v0.27.0/geckodriver-v0.27.0-macos.tar.gz
|
||||||
elif [[ $OSNAME == "Linux" ]]; then
|
elif [[ $OSNAME == "Linux" ]]; then
|
||||||
url=https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz
|
url=https://github.com/mozilla/geckodriver/releases/download/v0.27.0/geckodriver-v0.27.0-linux64.tar.gz
|
||||||
else
|
else
|
||||||
echo "Unhandled OS"
|
echo "Unhandled OS"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -645,7 +642,7 @@ stages:
|
|||||||
testResultsFormat: 'NUnit'
|
testResultsFormat: 'NUnit'
|
||||||
testResultsFiles: '**/TestResult.xml'
|
testResultsFiles: '**/TestResult.xml'
|
||||||
testRunTitle: '$(osName) Automation Tests'
|
testRunTitle: '$(osName) Automation Tests'
|
||||||
failTaskOnFailedTests: $(failBuild)
|
failTaskOnFailedTests: true
|
||||||
displayName: Publish Test Results
|
displayName: Publish Test Results
|
||||||
|
|
||||||
- stage: Analyze
|
- stage: Analyze
|
||||||
|
|||||||
2
build.sh
2
build.sh
@@ -237,7 +237,7 @@ PackageTests()
|
|||||||
# geckodriver.exe isn't copied by dotnet publish
|
# geckodriver.exe isn't copied by dotnet publish
|
||||||
if [ "$runtime" = "win-x64" ];
|
if [ "$runtime" = "win-x64" ];
|
||||||
then
|
then
|
||||||
curl -Lso gecko.zip "https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-win64.zip"
|
curl -Lso gecko.zip "https://github.com/mozilla/geckodriver/releases/download/v0.27.0/geckodriver-v0.27.0-win64.zip"
|
||||||
unzip -o gecko.zip
|
unzip -o gecko.zip
|
||||||
cp geckodriver.exe "$testPackageFolder/$framework/win-x64/publish"
|
cp geckodriver.exe "$testPackageFolder/$framework/win-x64/publish"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user