-
Notifications
You must be signed in to change notification settings - Fork 5
/
build-ci.yml
47 lines (41 loc) · 1.06 KB
/
build-ci.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
trigger:
batch: true
branches:
include:
- master
pool: Default
resources:
repositories:
- repository: templates
type: git
name: DevShared/Templates
variables:
- group: Nuget
- name: 'buildPlatform'
value: 'any cpu'
- name: buildConfiguration
value: 'Release'
- name: solution
value: 'Kros.Utils.MsAccess.sln'
- name: projectName
value: 'Kros.Utils.MsAccess'
- name: testProjectName
value: 'Kros.Utils.MsAccess.UnitTests'
steps:
- template: steps/nuget-download-and-restore.yml@templates
parameters:
useNugetConfig: 'false'
- task: VSBuild@1
displayName: Build
inputs:
solution: '$(solution)'
msbuildArgs: '/verbosity:normal /p:SkipInvalidConfigurations=true'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: VSTest@2
displayName: Tests
inputs:
testSelector: 'testAssemblies'
testAssemblyVer2: '**/$(buildConfiguration)/$(testProjectName).dll'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'