Merge branch 'add/azure-pipelines' of https://github.com/microsoft/BotFramework-WeChat into add/azure-pipelines

This commit is contained in:
Zhipeng Wang 2020-02-05 17:33:47 +08:00
Родитель 4b1080a438 9d391649ef
Коммит 357651dc7a
1 изменённых файлов: 39 добавлений и 1 удалений

Просмотреть файл

@ -4,6 +4,17 @@
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
trigger:
batch: true
branches:
include:
- master
paths:
exclude:
- doc/*
- libraries/csharp_dotnetcore/*
- samples/*
pr:
- master
pool:
@ -18,4 +29,31 @@ steps:
- script: |
npm install
npm run build
displayName: 'npm install and build'
npm run test
displayName: 'npm install, build and run tests'
workingDirectory: libraries/typescript/Microsoft.Bot.Builder.Adapters.WeChat
- task: Npm@1
displayName: 'npm pack botframework-wechat'
inputs:
command: custom
workingDir: 'libraries/typescript/Microsoft.Bot.Builder.Adapters.WeChat'
verbose: false
customCommand: pack
- task: CopyFiles@2
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)'
inputs:
SourceFolder: libraries/typescript/Microsoft.Bot.Builder.Adapters.WeChat
Contents: '**/*.tgz'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
flattenFolders: true
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'
inputs:
ArtifactName: 'drop'