Update azure pipelines
parent
1547294c0e
commit
8da9780692
|
@ -10,95 +10,102 @@
|
||||||
# - File content to variable: https://marketplace.visualstudio.com/items?itemName=maikvandergaag.maikvandergaag-file-to-variable
|
# - File content to variable: https://marketplace.visualstudio.com/items?itemName=maikvandergaag.maikvandergaag-file-to-variable
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
# TODO: change to master once pull request merged
|
- master
|
||||||
- azure-pipelines
|
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- stage: Build
|
||||||
jobs:
|
jobs:
|
||||||
- job: 'Windows'
|
|
||||||
|
|
||||||
|
- job: 'Windows'
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'vs2017-win2016'
|
vmImage: 'vs2017-win2016'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- task: NodeTool@0
|
- task: UseNode@1
|
||||||
inputs:
|
inputs:
|
||||||
versionSpec: '8.11.2'
|
version: '10.16.3'
|
||||||
displayName: 'Install Node.js'
|
displayName: 'Install Node.js 10.16.3'
|
||||||
|
- script: yarn install
|
||||||
- script: npm install -g npm@6.0.1
|
displayName: 'Run yarn install'
|
||||||
displayName: 'Install NPM'
|
- script: gulp release --win32 --win64
|
||||||
|
|
||||||
- script: npm install -g gulp
|
|
||||||
displayName: 'Install Gulp'
|
|
||||||
|
|
||||||
- script: npm install
|
|
||||||
displayName: 'Run npm install'
|
|
||||||
|
|
||||||
- script: gulp release --win32
|
|
||||||
displayName: 'Run gulp release'
|
displayName: 'Run gulp release'
|
||||||
|
|
||||||
- powershell: Set-Content -Path '$(System.DefaultWorkingDirectory)/release/log.txt' -Value $env:BUILD_SOURCEVERSIONMESSAGE
|
- powershell: Set-Content -Path '$(System.DefaultWorkingDirectory)/release/log.txt' -Value $env:BUILD_SOURCEVERSIONMESSAGE
|
||||||
|
|
||||||
- task: PublishPipelineArtifact@0
|
- task: PublishPipelineArtifact@1
|
||||||
displayName: 'Publish Windows release'
|
displayName: 'Publish Windows release'
|
||||||
inputs:
|
inputs:
|
||||||
artifactName: betaflight-configurator-windows
|
targetPath: '$(System.DefaultWorkingDirectory)/release'
|
||||||
|
artifact: 'betaflight-configurator-windows'
|
||||||
|
|
||||||
|
|
||||||
|
- job: 'MacOS'
|
||||||
|
pool:
|
||||||
|
vmImage: 'macos-10.13'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- task: UseNode@1
|
||||||
|
inputs:
|
||||||
|
version: '10.16.3'
|
||||||
|
displayName: 'Install Node.js 10.16.3'
|
||||||
|
- script: npm install -g gulp
|
||||||
|
displayName: 'Install Gulp'
|
||||||
|
- script: yarn install
|
||||||
|
displayName: 'Run yarn install'
|
||||||
|
- script: gulp release --osx64
|
||||||
|
displayName: 'Run gulp release'
|
||||||
|
|
||||||
|
- task: PublishPipelineArtifact@1
|
||||||
|
displayName: 'Publish MacOS release'
|
||||||
|
inputs:
|
||||||
|
artifactName: betaflight-configurator-macos
|
||||||
targetPath: '$(System.DefaultWorkingDirectory)/release'
|
targetPath: '$(System.DefaultWorkingDirectory)/release'
|
||||||
|
|
||||||
- job: 'Linux'
|
|
||||||
|
|
||||||
|
- job: 'Linux'
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'ubuntu-16.04'
|
vmImage: 'ubuntu-16.04'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- task: NodeTool@0
|
- task: UseNode@1
|
||||||
inputs:
|
inputs:
|
||||||
versionSpec: '8.11.2'
|
version: '10.16.3'
|
||||||
displayName: 'Install Node.js'
|
displayName: 'Install Node.js 10.16.3'
|
||||||
|
- script: yarn install
|
||||||
- script: npm install -g npm@6.0.1
|
displayName: 'Run yarn install'
|
||||||
displayName: 'Install NPM'
|
|
||||||
|
|
||||||
- script: npm install -g gulp
|
|
||||||
displayName: 'Install Gulp'
|
|
||||||
|
|
||||||
- script: npm install
|
|
||||||
displayName: 'Run npm install'
|
|
||||||
|
|
||||||
- script: gulp release --linux32 --linux64
|
- script: gulp release --linux32 --linux64
|
||||||
displayName: 'run gulp release'
|
displayName: 'Run gulp release'
|
||||||
|
- script: cd $(System.DefaultWorkingDirectory)/release; find -mindepth 1 -maxdepth 1 -type d -exec rm -r {} \;
|
||||||
|
displayName: 'Clean release folders'
|
||||||
|
|
||||||
- task: PublishPipelineArtifact@0
|
- task: PublishPipelineArtifact@1
|
||||||
displayName: 'Publish Linux release'
|
displayName: 'Publish Linux release'
|
||||||
inputs:
|
inputs:
|
||||||
artifactName: betaflight-configurator-linux
|
artifactName: betaflight-configurator-linux
|
||||||
targetPath: '$(System.DefaultWorkingDirectory)/release'
|
targetPath: '$(System.DefaultWorkingDirectory)/release'
|
||||||
|
|
||||||
- job: 'MacOS'
|
|
||||||
|
|
||||||
pool:
|
- stage: Release
|
||||||
vmImage: 'macos-10.13'
|
jobs:
|
||||||
|
- job: Release
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- task: NodeTool@0
|
- task: DownloadPipelineArtifact@2
|
||||||
inputs:
|
inputs:
|
||||||
versionSpec: '8.11.2'
|
buildType: 'current'
|
||||||
displayName: 'Install Node.js'
|
targetPath: '$(Pipeline.Workspace)'
|
||||||
|
|
||||||
- script: npm install -g npm@6.0.1
|
- task: GitHubRelease@1
|
||||||
displayName: 'Install NPM'
|
|
||||||
|
|
||||||
- script: npm install -g gulp
|
|
||||||
displayName: 'Install Gulp'
|
|
||||||
|
|
||||||
- script: npm install
|
|
||||||
displayName: 'Run rpm install'
|
|
||||||
|
|
||||||
- script: gulp release --osx64
|
|
||||||
displayName: 'Run gulp release'
|
|
||||||
|
|
||||||
- task: PublishPipelineArtifact@0
|
|
||||||
displayName: 'Publish MacOS release'
|
|
||||||
inputs:
|
inputs:
|
||||||
artifactName: betaflight-configurator-macos
|
gitHubConnection: 'Betaflight GitHub'
|
||||||
targetPath: '$(System.DefaultWorkingDirectory)/release'
|
repositoryName: '$(Build.Repository.Name)'
|
||||||
|
action: 'create'
|
||||||
|
target: '$(Build.SourceVersion)'
|
||||||
|
tagSource: userSpecifiedTag
|
||||||
|
tag: '$(Build.BuildNumber) '
|
||||||
|
isPreRelease: true
|
||||||
|
changeLogCompareToRelease: lastNonDraftRelease
|
||||||
|
changeLogType: 'commitBased'
|
||||||
|
assets: |
|
||||||
|
$(Pipeline.Workspace)/betaflight-configurator-windows/**
|
||||||
|
$(Pipeline.Workspace)/betaflight-configurator-macos/**
|
||||||
|
$(Pipeline.Workspace)/betaflight-configurator-linux/**
|
||||||
|
|
Loading…
Reference in New Issue