Try to fix tests

This commit is contained in:
ta264 2019-08-11 17:04:58 +01:00
commit bc02f4ef92
2 changed files with 14 additions and 12 deletions

View file

@ -58,6 +58,16 @@ stages:
displayName: Build Lidarr Backend displayName: Build Lidarr Backend
- publish: $(outputFolder) - publish: $(outputFolder)
artifact: '$(osName)Backend' artifact: '$(osName)Backend'
condition: and(succeeded(), eq(variables['osName'], 'Windows'))
- publish: $(testsFolder)
artifact: 'Tests'
condition: and(succeeded(), eq(variables['osName'], 'Windows'))
# - task: PublishPipelineArtifact@0
# displayName: Publish Tests Artifact
# inputs:
# artifactName: 'Tests'
# targetPath: '$(testsFolder)'
- job: Frontend - job: Frontend
strategy: strategy:
@ -84,6 +94,7 @@ stages:
displayName: Build Lidarr Frontend displayName: Build Lidarr Frontend
- publish: $(outputFolder) - publish: $(outputFolder)
artifact: '$(osName)Frontend' artifact: '$(osName)Frontend'
condition: and(succeeded(), eq(variables['osName'], 'Windows'))
# - job: macOS # - job: macOS
# displayName: macOS # displayName: macOS
@ -135,17 +146,8 @@ stages:
buildType: 'current' buildType: 'current'
artifactName: WindowsFrontend artifactName: WindowsFrontend
targetPath: _output targetPath: _output
# - download: current
# artifact: 'WindowsBackend'
# - download: current
# artifact: 'WindowsFrontend'
- bash: ./build.sh --only-packages - bash: ./build.sh --only-packages
displayName: Create Lidarr Packages displayName: Create Lidarr Packages
- task: PublishPipelineArtifact@0
displayName: Publish Tests Artifact
inputs:
artifactName: 'Tests'
targetPath: '$(testsFolder)'
- task: ArchiveFiles@2 - task: ArchiveFiles@2
displayName: Create Windows zip displayName: Create Windows zip
inputs: inputs:

View file

@ -368,6 +368,7 @@ set -- "${POSITIONAL[@]}" # restore positional parameters
if [ -z "$ONLY_FRONTEND" ] && [ -z "$ONLY_PACKAGES" ]; if [ -z "$ONLY_FRONTEND" ] && [ -z "$ONLY_PACKAGES" ];
then then
Build Build
PackageTests
fi fi
# Only build frontend if we haven't set only-backend or only-packages # Only build frontend if we haven't set only-backend or only-packages
@ -382,7 +383,6 @@ then
PackageMono PackageMono
PackageMacOS PackageMacOS
PackageMacOSApp PackageMacOSApp
PackageTests
CleanupWindowsPackage CleanupWindowsPackage
PackageArtifacts PackageArtifacts
fi fi