43 строки
1.2 KiB
YAML
43 строки
1.2 KiB
YAML
#
|
|
# Build and run "simple" tests against Microsoft.Bot.Builder.sln
|
|
#
|
|
|
|
# "name" here defines the build number format. Build number is accessed via $(Build.BuildNumber)
|
|
name: $(Build.BuildId)
|
|
|
|
pool:
|
|
vmImage: $[ coalesce( variables['VMImage'], 'windows-2022' ) ] # or 'windows-latest'
|
|
|
|
trigger: none
|
|
|
|
pr: none
|
|
|
|
variables:
|
|
BuildPlatform: 'any cpu'
|
|
BuildConfiguration: 'Debug'
|
|
Parameters.solution: Microsoft.Bot.Builder.sln
|
|
MSBuildArguments:
|
|
# AzureSubscription: define this in Azure
|
|
|
|
steps:
|
|
- template: ci-build-steps.yml
|
|
|
|
- task: Npm@1
|
|
displayName: 'install botframework-cli to set up for Schema merge tests'
|
|
inputs:
|
|
command: custom
|
|
verbose: false
|
|
customCommand: 'install -g @microsoft/botframework-cli@next'
|
|
|
|
- task: DotNetCoreCLI@2
|
|
displayName: 'dotnet test'
|
|
inputs:
|
|
command: test
|
|
projects: |
|
|
**/**Tests.csproj
|
|
!**/Microsoft.Bot.Builder.Classic.Tests.csproj
|
|
!**/Microsoft.Bot.ApplicationInsights.WebApi.Tests.csproj
|
|
!**/Microsoft.Bot.Builder.Integration.AspNet.WebApi.Tests.csproj
|
|
arguments: '-v n --configuration $(BuildConfiguration) --no-build --no-restore --filter TestCategory!=IgnoreInAutomatedBuild&TestCategory!=FunctionalTests"'
|
|
workingDirectory: tests
|