Update azure pipelines

10.7.0-preview
Richard Cooper 2019-10-01 12:04:01 +01:00 committed by Richard Cooper
parent 1547294c0e
commit 8da9780692
1 changed files with 83 additions and 76 deletions

View File

@ -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
jobs: stages:
- job: 'Windows' - stage: Build
jobs:
pool: - job: 'Windows'
vmImage: 'vs2017-win2016' pool:
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
displayName: 'Run yarn install'
- script: gulp release --win32 --win64
displayName: 'Run gulp release'
- powershell: Set-Content -Path '$(System.DefaultWorkingDirectory)/release/log.txt' -Value $env:BUILD_SOURCEVERSIONMESSAGE
- script: npm install -g npm@6.0.1 - task: PublishPipelineArtifact@1
displayName: 'Install NPM' displayName: 'Publish Windows release'
inputs:
targetPath: '$(System.DefaultWorkingDirectory)/release'
artifact: 'betaflight-configurator-windows'
- script: npm install -g gulp
displayName: 'Install Gulp'
- script: npm install - job: 'MacOS'
displayName: 'Run npm install' pool:
vmImage: 'macos-10.13'
- script: gulp release --win32 steps:
displayName: 'Run gulp release' - 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'
- powershell: Set-Content -Path '$(System.DefaultWorkingDirectory)/release/log.txt' -Value $env:BUILD_SOURCEVERSIONMESSAGE - task: PublishPipelineArtifact@1
displayName: 'Publish MacOS release'
inputs:
artifactName: betaflight-configurator-macos
targetPath: '$(System.DefaultWorkingDirectory)/release'
- task: PublishPipelineArtifact@0
displayName: 'Publish Windows release'
inputs:
artifactName: betaflight-configurator-windows
targetPath: '$(System.DefaultWorkingDirectory)/release'
- job: 'Linux' - job: 'Linux'
pool:
vmImage: 'ubuntu-16.04'
pool: steps:
vmImage: 'ubuntu-16.04' - task: UseNode@1
inputs:
version: '10.16.3'
displayName: 'Install Node.js 10.16.3'
- script: yarn install
displayName: 'Run yarn install'
- script: gulp release --linux32 --linux64
displayName: 'Run gulp release'
- script: cd $(System.DefaultWorkingDirectory)/release; find -mindepth 1 -maxdepth 1 -type d -exec rm -r {} \;
displayName: 'Clean release folders'
steps: - task: PublishPipelineArtifact@1
- task: NodeTool@0 displayName: 'Publish Linux release'
inputs: inputs:
versionSpec: '8.11.2' artifactName: betaflight-configurator-linux
displayName: 'Install Node.js' targetPath: '$(System.DefaultWorkingDirectory)/release'
- script: npm install -g npm@6.0.1
displayName: 'Install NPM'
- script: npm install -g gulp - stage: Release
displayName: 'Install Gulp' jobs:
- job: Release
- script: npm install steps:
displayName: 'Run npm install' - task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
targetPath: '$(Pipeline.Workspace)'
- script: gulp release --linux32 --linux64 - task: GitHubRelease@1
displayName: 'run gulp release' inputs:
gitHubConnection: 'Betaflight GitHub'
- task: PublishPipelineArtifact@0 repositoryName: '$(Build.Repository.Name)'
displayName: 'Publish Linux release' action: 'create'
inputs: target: '$(Build.SourceVersion)'
artifactName: betaflight-configurator-linux tagSource: userSpecifiedTag
targetPath: '$(System.DefaultWorkingDirectory)/release' tag: '$(Build.BuildNumber) '
isPreRelease: true
- job: 'MacOS' changeLogCompareToRelease: lastNonDraftRelease
changeLogType: 'commitBased'
pool: assets: |
vmImage: 'macos-10.13' $(Pipeline.Workspace)/betaflight-configurator-windows/**
$(Pipeline.Workspace)/betaflight-configurator-macos/**
steps: $(Pipeline.Workspace)/betaflight-configurator-linux/**
- task: NodeTool@0
inputs:
versionSpec: '8.11.2'
displayName: 'Install Node.js'
- script: npm install -g npm@6.0.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:
artifactName: betaflight-configurator-macos
targetPath: '$(System.DefaultWorkingDirectory)/release'