Split to specific jobs

This commit is contained in:
Marquis Kurt 2019-05-12 16:58:07 -04:00
parent e0a7a755c3
commit 0aabf34f67
3 changed files with 40 additions and 28 deletions

3
.azure/build-web.yml Normal file
View File

@ -0,0 +1,3 @@
steps:
- script: |
npm run build

9
.azure/setup.yml Normal file
View File

@ -0,0 +1,9 @@
steps:
- task: NodeTool@0
inputs:
versionSpec: '8.x'
displayName: 'Install Node.js'
- script: |
npm install
displayName: 'Install dependencies'

View File

@ -1,30 +1,30 @@
# Node.js with React
# Build a Node.js project that uses React.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-latest'
steps:
- template: .azure/setup.yml
- template: .azure/build-web.yml
- script: |
npm run build-desktop-linux
displayName: 'Build Linux client'
strategy:
matrix:
linux:
imageName: 'ubuntu-latest'
mac:
imageName: 'macos-latest'
windows:
imageName: 'vs2017-win2016'
- job: macOS
pool:
vmImage: 'mac-latest'
steps:
- template: .azure/setup.yml
- template: .azure/build-web.yml
- script: |
npm run build-desktop-macos
displayName: 'Build macOS client'
pool:
vmImage: $(imageName)
steps:
- task: NodeTool@0
inputs:
versionSpec: '8.x'
displayName: 'Install Node.js'
- script: |
npm install
displayName: 'Install dependencies'
- script: |
npm run build
displayName: 'Build web production files'
- job: Windows
pool:
vmImage: 'vs2017-win2016'
steps:
- template: .azure/setup.yml
- template: .azure/build-web.yml
- script: |
npm run build-desktop-win
displayName: 'Build Windows client'