Builds for Win & Mac (#532)
* Set up Win & Mac builds for CLI * Update Node.
This commit is contained in:
Родитель
61c317e6a5
Коммит
6207a61c52
|
@ -1,8 +1,12 @@
|
|||
trigger:
|
||||
batch: true
|
||||
branches:
|
||||
include:
|
||||
- master
|
||||
#
|
||||
# Build Botframework-CLI on Mac (Linux) agent
|
||||
#
|
||||
|
||||
# "name" here defines the build number format. Build number is accessed via $(Build.BuildNumber)
|
||||
name: $(Build.BuildId)
|
||||
|
||||
pool:
|
||||
vmImage: 'macOS-10.14'
|
||||
|
||||
pr:
|
||||
branches:
|
||||
|
@ -21,37 +25,22 @@ pr:
|
|||
- LICENSE
|
||||
- PRIVACY.md
|
||||
|
||||
schedules:
|
||||
- cron: "0 8 * * *"
|
||||
displayName: Daily midnight build
|
||||
branches:
|
||||
include:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
- job: CLI
|
||||
strategy:
|
||||
matrix:
|
||||
windows:
|
||||
imageName: "windows-2019"
|
||||
nodeVersion: "12.x"
|
||||
maxParallel: 3
|
||||
pool:
|
||||
vmImage: $(imageName)
|
||||
variables:
|
||||
buildVersion: '4.8.0-preview.$(Build.BuildId)'
|
||||
_version: ${{coalesce(variables.version, variables.buildVersion)}}
|
||||
|
||||
steps:
|
||||
#Your build pipeline references the ‘version’ variable, which you’ve selected to be settable at queue time. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it settable at queue time. See https://go.microsoft.com/fwlink/?linkid=865971
|
||||
- task: colinsalmcorner.colinsalmcorner-buildtasks.tag-build-task.tagBuildOrRelease@0
|
||||
displayName: 'Tag Build with version number'
|
||||
inputs:
|
||||
tags: 'Version=$(_version)'
|
||||
|
||||
- task: NodeTool@0
|
||||
displayName: 'Use Node $(nodeVersion)'
|
||||
displayName: 'Use Node 12.x'
|
||||
inputs:
|
||||
versionSpec: $(nodeVersion)
|
||||
versionSpec: 12.x
|
||||
|
||||
- task: Npm@1
|
||||
displayName: 'Install rush'
|
|
@ -0,0 +1,85 @@
|
|||
#
|
||||
# Build Botframework-CLI on Windows agent
|
||||
#
|
||||
|
||||
# "name" here defines the build number format. Build number is accessed via $(Build.BuildNumber)
|
||||
name: $(Build.BuildId)
|
||||
|
||||
pool:
|
||||
name: Hosted Windows 2019 with VS2019
|
||||
|
||||
pr:
|
||||
branches:
|
||||
include:
|
||||
- master
|
||||
paths:
|
||||
include:
|
||||
- '*'
|
||||
exclude:
|
||||
- README.md
|
||||
- specs/*
|
||||
- PortingMap.md
|
||||
- ToolLifetimeSchedule.md
|
||||
- AzureCli.md
|
||||
- CONTRIBUTING.md
|
||||
- LICENSE
|
||||
- PRIVACY.md
|
||||
|
||||
jobs:
|
||||
- job: CLI
|
||||
variables:
|
||||
buildVersion: '4.8.0-preview.$(Build.BuildId)'
|
||||
_version: ${{coalesce(variables.version, variables.buildVersion)}}
|
||||
|
||||
steps:
|
||||
- task: colinsalmcorner.colinsalmcorner-buildtasks.tag-build-task.tagBuildOrRelease@0
|
||||
displayName: 'Tag Build with version number'
|
||||
inputs:
|
||||
tags: 'Version=$(_version)'
|
||||
|
||||
- task: NodeTool@0
|
||||
displayName: 'Use Node 12.x'
|
||||
inputs:
|
||||
versionSpec: 12.x
|
||||
|
||||
- task: Npm@1
|
||||
displayName: 'Install rush'
|
||||
inputs:
|
||||
command: custom
|
||||
verbose: false
|
||||
customCommand: 'install --global @microsoft/rush'
|
||||
|
||||
- script: 'rush update'
|
||||
displayName: 'rush update'
|
||||
|
||||
- script: 'rush build'
|
||||
displayName: 'rush build'
|
||||
|
||||
- script: 'rush test'
|
||||
displayName: 'rush test'
|
||||
|
||||
- script: 'rush posttest'
|
||||
displayName: 'rush posttest'
|
||||
|
||||
- script: 'node ./common/scripts/version-and-pack.js --version $(_version)'
|
||||
displayName: 'Version and Pack'
|
||||
|
||||
- task: CopyFiles@2
|
||||
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)'
|
||||
inputs:
|
||||
SourceFolder: ./.output
|
||||
Contents: '**/*.tgz'
|
||||
TargetFolder: '$(Build.ArtifactStagingDirectory)'
|
||||
flattenFolders: true
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: 'Publish Artifact: drop'
|
||||
inputs:
|
||||
artifactName: 'drop'
|
||||
|
||||
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
|
||||
displayName: 'Component Detection'
|
||||
|
||||
- script: 'rush report:coverage'
|
||||
displayName: 'rush report:coverage'
|
||||
enabled: false
|
Загрузка…
Ссылка в новой задаче