зеркало из
1
0
Форкнуть 0
This commit is contained in:
praveensri 2021-04-08 14:18:39 -07:00
Родитель 71e1058a32
Коммит ef57c274f6
1 изменённых файлов: 30 добавлений и 25 удалений

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

@ -1,32 +1,37 @@
# Starter pipeline
- task: DotNetCoreCLI@2
inputs:
command: 'build'
- task: VSTest@2
inputs:
testSelector: 'testAssemblies'
testAssemblyVer2: |
**\*test*.dll
!**\*TestAdapter.dll
!**\obj\**
searchFolder: '$(System.DefaultWorkingDirectory)'
projects: 'dirs.sln'
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- main
- CosmosDB
pool:
vmImage: ubuntu-latest
vmImage: 'windows-latest'
variables:
solution: '**/dirs.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- script: echo Hello, world!
displayName: 'Run a one-line script'
- script: |
echo Add other tasks to build, test, and deploy your project.
echo See https://aka.ms/yaml
displayName: 'Run a multi-line script'
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'
- task: VSBuild@1
inputs:
solution: '$(solution)'
msbuildArgs: '/p:DeployOnBuild=false /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:DesktopBuildPackageLocation="$(build.artifactStagingDirectory)\WebApp.zip" /p:DeployIisAppPath="Default Web Site"'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: VSTest@2
inputs:
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- script: dotnet test dirs.sln --logger trx
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testRunner: VSTest
testResultsFiles: '**/*.trx'