Try matrix jobs not stages

This commit is contained in:
ta264 2019-08-11 15:02:31 +01:00
commit e6d4d9d48a

View file

@ -20,17 +20,21 @@ variables:
stages: stages:
- stage: Build - stage: Build
strategy:
matrix:
Linux:
imageName: 'ubuntu-16.04'
Mac:
imageName: 'macos-10.13'
Windows:
imageName: 'vs2017-win2016'
jobs: jobs:
- job: Backend - job: Backend
strategy:
matrix:
Linux:
osName: 'Linux'
imageName: 'ubuntu-16.04'
Mac:
osName: 'MacOS'
imageName: 'macos-10.13'
Windows:
osName: 'Windows'
imageName: 'vs2017-win2016'
pool: pool:
vmImage: $(imageName) vmImage: $(imageName)
steps: steps:
@ -53,10 +57,20 @@ stages:
- bash: ./build.sh --only-backend - bash: ./build.sh --only-backend
displayName: Build Lidarr Backend displayName: Build Lidarr Backend
- publish: $(outputFolder) - publish: $(outputFolder)
artifact: 'WindowsBackend' artifact: '$(osName)Backend'
- job: Windows_Frontend - job: Frontend
displayName: Windows Frontend strategy:
matrix:
Linux:
osName: 'Linux'
imageName: 'ubuntu-16.04'
Mac:
osName: 'MacOS'
imageName: 'macos-10.13'
Windows:
osName: 'Windows'
imageName: 'vs2017-win2016'
pool: pool:
vmImage: $(imageName) vmImage: $(imageName)
steps: steps:
@ -69,7 +83,7 @@ stages:
- bash: ./build.sh --only-frontend - bash: ./build.sh --only-frontend
displayName: Build Lidarr Frontend displayName: Build Lidarr Frontend
- publish: $(outputFolder) - publish: $(outputFolder)
artifact: 'WindowsFrontend' artifact: '$(osName)Frontend'
# - job: macOS # - job: macOS
# displayName: macOS # displayName: macOS
@ -110,11 +124,11 @@ stages:
pool: pool:
vmImage: 'vs2017-win2016' vmImage: 'vs2017-win2016'
steps: steps:
- checkout: self
- download: current - download: current
artifact: 'WindowsBackend' artifact: 'WindowsBackend'
- download: current - download: current
artifact: 'WindowsFrontend' artifact: 'WindowsFrontend'
- bash: ./build.sh --only-packages - bash: ./build.sh --only-packages
displayName: Create Lidarr Packages displayName: Create Lidarr Packages
- task: PublishPipelineArtifact@0 - task: PublishPipelineArtifact@0