From c3c8cb4660779acc04f42a0a6f96aea81c18d403 Mon Sep 17 00:00:00 2001 From: Qstick Date: Tue, 5 Jan 2021 21:34:16 -0500 Subject: [PATCH] Build Cleanup --- azure-pipelines.yml | 24 ++------- src/Stylecop.ruleset | 116 ------------------------------------------- src/omnisharp.json | 9 ++++ 3 files changed, 14 insertions(+), 135 deletions(-) delete mode 100644 src/Stylecop.ruleset create mode 100644 src/omnisharp.json diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0de30a7cf..64e05f182 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -288,7 +288,7 @@ stages: includeRootFolder: false rootFolderOrFile: $(artifactsFolder)/linux-arm/netcoreapp3.1 - task: ArchiveFiles@2 - displayName: Create Linux Core tar + displayName: Create ARM64 Linux Core tar inputs: archiveFile: '$(Build.ArtifactStagingDirectory)/Lidarr.$(buildName).linux-core-arm64.tar.gz' archiveType: 'tar' @@ -597,7 +597,6 @@ stages: artifactName: LinuxMuslCoreTests containerImage: servarr/testimages:alpine pattern: 'Lidarr.**.linux-musl-core-x64.tar.gz' - pool: vmImage: 'ubuntu-18.04' @@ -660,14 +659,14 @@ stages: failBuild: true Mac: osName: 'Mac' - imageName: 'macos-10.14' # Fails due to firefox not being installed on image + imageName: 'macos-10.14' pattern: 'Lidarr.**.osx-core-x64.tar.gz' - failBuild: false + failBuild: true Windows: osName: 'Windows' imageName: 'windows-2019' pattern: 'Lidarr.**.windows-core-x64.zip' - failBuild: $(failOnAutomationFailure) + failBuild: true pool: vmImage: $(imageName) @@ -700,20 +699,6 @@ stages: mkdir -p ./bin/ cp -r -v ${BUILD_ARTIFACTSTAGINGDIRECTORY}/bin/Lidarr/. ./bin/ displayName: Move Package Contents - - bash: | - if [[ $OSNAME == "Mac" ]]; then - url=https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-macos.tar.gz - elif [[ $OSNAME == "Linux" ]]; then - url=https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz - else - echo "Unhandled OS" - exit 1 - fi - curl -s -L "$url" | tar -xz - chmod +x geckodriver - mv geckodriver _tests - displayName: Install Gecko Driver - condition: and(succeeded(), ne(variables['osName'], 'Windows')) - bash: | chmod a+x ${TESTSFOLDER}/test.sh ${TESTSFOLDER}/test.sh ${OSNAME} Automation Test @@ -728,6 +713,7 @@ stages: - publish: $(Build.ArtifactStagingDirectory)/screenshots artifact: '$(osName)AutomationScreenshots' displayName: Publish Screenshot Bundle + condition: and(succeeded(), eq(variables['System.JobAttempt'], '1')) - task: PublishTestResults@2 inputs: testResultsFormat: 'NUnit' diff --git a/src/Stylecop.ruleset b/src/Stylecop.ruleset deleted file mode 100644 index d00aca5e0..000000000 --- a/src/Stylecop.ruleset +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/omnisharp.json b/src/omnisharp.json new file mode 100644 index 000000000..17481627d --- /dev/null +++ b/src/omnisharp.json @@ -0,0 +1,9 @@ +{ + "RoslynExtensionsOptions": { + "enableAnalyzersSupport": true, + "DocumentAnalysisTimeoutMs": 60000 + }, + "FormattingOptions": { + "enableEditorConfigSupport": true + } +}