forked from AArnott/SPSS.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
59 lines (49 loc) · 1.49 KB
/
azure-pipelines.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
48
49
50
51
52
53
54
55
56
57
58
59
trigger:
branches:
include: ["master"]
paths:
exclude: ["doc", "*.md"]
variables:
TreatWarningsAsErrors: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
BuildConfiguration: Release
BuildPlatform: Any CPU
queue: Hosted VS2017
steps:
- script: |
dotnet tool install --tool-path . nbgv
.\nbgv cloud -p src
displayName: Set build number
condition: ne(variables['system.pullrequest.isfork'], true)
- task: DotNetCoreInstaller@0
displayName: Install .NET Core SDK 2.1.400
inputs:
packageType: sdk
version: 2.1.400
- script: dotnet --info
displayName: Show dotnet SDK info
- script: dotnet restore src
displayName: Restore packages
- script: |
dotnet build src --no-restore -c $(BuildConfiguration)
dotnet pack src --no-build -c $(BuildConfiguration) -o "$(Build.ArtifactStagingDirectory)/deployables"
displayName: Build
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)/deployables
ArtifactName: deployables
ArtifactType: Container
displayName: Publish deployables artifacts
condition: and(succeeded(), ne(variables['system.pullrequest.isfork'], true))
- task: DotNetCoreCLI@2
displayName: Test x86
inputs:
command: test
projects: src/TestSpss
arguments: -c $(BuildConfiguration) --no-restore /p:platform=x86 -v n
- task: DotNetCoreCLI@2
displayName: Test x64
inputs:
command: test
projects: src/TestSpss
arguments: -c $(BuildConfiguration) --no-restore /p:platform=x64 -v n