Split to specific jobs
This commit is contained in:
parent
e0a7a755c3
commit
0aabf34f67
|
@ -0,0 +1,3 @@
|
|||
steps:
|
||||
- script: |
|
||||
npm run build
|
|
@ -0,0 +1,9 @@
|
|||
steps:
|
||||
- task: NodeTool@0
|
||||
inputs:
|
||||
versionSpec: '8.x'
|
||||
displayName: 'Install Node.js'
|
||||
|
||||
- script: |
|
||||
npm install
|
||||
displayName: 'Install dependencies'
|
|
@ -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'
|
Loading…
Reference in New Issue