Skip to content

Commit

Permalink
Using ui vs2017 build agent
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKert committed Mar 22, 2019
1 parent d7c779e commit 7651841
Showing 1 changed file with 45 additions and 52 deletions.
97 changes: 45 additions & 52 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,64 +14,57 @@ pool:
variables:
BuildPlatform: 'Any CPU'
BuildConfiguration: 'Release'
jobs:
- job: Build
pool:
name: UI-VS2017
steps:
- task: DotNetCoreCLI@2
inputs:
command: custom
custom: tool
arguments: install --tool-path . nbgv
displayName: Install NBGV tool
continueOnError: true

steps:
- task: DotNetCoreCLI@2
inputs:
command: custom
custom: tool
arguments: install --tool-path . nbgv
displayName: Install NBGV tool
continueOnError: true
- script: nbgv cloud -a
displayName: Set Version

- script: nbgv cloud -a
displayName: Set Version
- task: VisualStudioTestPlatformInstaller@1
displayName: VsTest Platform Installer

- task: VisualStudioTestPlatformInstaller@1
displayName: VsTest Platform Installer
- task: NuGetToolInstaller@0

- task: NuGetToolInstaller@0
- task: NuGetCommand@2
inputs:
restoreSolution: BuildVision.sln

- task: NuGetCommand@2
inputs:
restoreSolution: BuildVision.sln
- task: MSBuild@1
displayName: Build BuildVision.sln
inputs:
solution: BuildVision.sln
platform: $(BuildPlatform)
configuration: $(BuildConfiguration)

- task: MSBuild@1
displayName: Build BuildVision.sln
inputs:
solution: BuildVision.sln
platform: $(BuildPlatform)
configuration: $(BuildConfiguration)
- task: CopyFiles@2
inputs:
contents: '**/bin/$(BuildConfiguration)/*.vsix'
targetFolder: $(Build.ArtifactStagingDirectory)/artifacts
flattenFolders: true

- task: CopyFiles@2
inputs:
contents: '**/bin/$(BuildConfiguration)/*.vsix'
targetFolder: $(Build.ArtifactStagingDirectory)/artifacts
flattenFolders: true
- task: DotNetCoreCLI@2
inputs:
command: test
projects: 'test/**/BuildVision.UnitTests.csproj'
arguments: -c $(BuildConfiguration) --no-build --no-restore
displayName: Run Unittests

- task: DotNetCoreCLI@2
inputs:
command: test
projects: 'test/**/BuildVision.UnitTests.csproj'
arguments: -c $(BuildConfiguration) --no-build --no-restore
displayName: Run Unittests
- powershell: |
& "$env:userprofile/.nuget/packages/xunit.runner.console/2.4.1/tools/net472/xunit.console.x86.exe" (Get-Childitem -Filter "BuildVision.IntegrationTests.dll" -Recurse | Where-Object {$_.FullName -like "*\bin\$(BuildConfiguration)\*" }).FullName
displayName: Execute Integration Tests
- task: VSTest@2
displayName: Execute Integrationtests
inputs:
testAssemblyVer2: |
**\$(BuildConfiguration)\**\*IntegrationTests*.dll
!**\obj\**
vsTestVersion: toolsInstaller
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'

- powershell: |
& "$env:userprofile/.nuget/packages/xunit.runner.console/2.4.1/tools/net472/xunit.console.x86.exe" (Get-Childitem -Filter "BuildVision.IntegrationTests.dll" -Recurse | Where-Object {$_.FullName -like "*\bin\$(BuildConfiguration)\*" }).FullName
displayName: Execute Integration Tests

- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)/artifacts
ArtifactName: artifacts
publishLocation: Container
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)/artifacts
ArtifactName: artifacts
publishLocation: Container

0 comments on commit 7651841

Please sign in to comment.