-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
31 lines (28 loc) · 812 Bytes
/
azure-pipelines.yml
File metadata and controls
31 lines (28 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
trigger:
branches:
include:
- master
pool:
vmImage: "windows-2019"
variables:
buildDir: "out"
generator: "Visual Studio 16 2019"
architecture: "x64"
configuration: "Release"
testDir: "HornsHoofs.ReverseService.Tests"
steps:
- task: UseDotNet@2
displayName: ".NET Core 3.1"
inputs:
version: "3.1.x"
packageType: sdk
- task: NuGetToolInstaller@0
displayName: "Install NuGet Tool"
- script: cmake -B "$(buildDir)" -S . -G "$(generator)" -A "$(architecture)"
displayName: "Generate Build"
- script: cmake --build "$(buildDir)" --config "$(configuration)" --target package
displayName: "Build Package"
- script: dotnet restore "$(testDir)"
displayName: 'Restore NuGet Packages'
- script: dotnet test "$(testDir)"
displayName: "Run Tests"