forked from microsoft/workbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vsts-ci.yml
85 lines (71 loc) · 2.08 KB
/
.vsts-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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
steps:
# These bits would install via Provisionator normally, so try
# to keep them in sync. Ideally we'll be able to run Prov in
# VSTS+YAML like we do for our "big builds".
- script: |
MONO_VERSION=5.12.0.273
MONO_PACKAGE="MonoFramework-MDK-${MONO_VERSION}.macos10.xamarin.universal.pkg"
curl -LO "https://dl.xamarin.com/MonoFrameworkMDK/Macx86/${MONO_PACKAGE}"
sudo installer -target / -pkg "${MONO_PACKAGE}"
sudo build/select-mono.sh latest
condition: and(succeeded(), eq(variables['agent.os'], 'darwin'))
displayName: Install Mono
- task: DotNetCoreInstaller@0
inputs:
version: 2.1.301
displayName: Install .NET Core
- task: NodeTool@0
inputs:
versionSpec: 8.x
displayName: Install Node.js
- task: NuGetToolInstaller@0
inputs:
versionSpec: 4.6.2
displayName: Install NuGet CLI
- script: npm install -g yarn
displayName: Install Yarn
# This script runs both via bash (macOS/Linux) and cmd (Windows).
# Keep it both valid bash and batch or break it out conditionally.
- script: |
echo System Environment
set
echo .NET Core Info
dotnet --info
displayName: Dump Environment
- task: MSBuild@1
inputs:
solution: build.proj
configuration: '$(msbuild.configuration)'
msbuildArguments: '/t:Restore /p:Profile=$(msbuild.buildProfile)'
displayName: Restore
- task: MSBuild@1
inputs:
solution: build.proj
msbuildArguments: '/t:Build'
displayName: Build
- task: MSBuild@1
inputs:
solution: build.proj
msbuildArguments: '/t:Package'
displayName: Package
- task: MSBuild@1
inputs:
solution: build.proj
msbuildArguments: '/t:ArchiveSymbolFiles'
displayName: Archive Symbol Files
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '_artifacts'
ArtifactName: Artifacts
publishLocation: Container
displayName: Publish Artifacts
- task: MSBuild@1
inputs:
solution: build.proj
msbuildArguments: '/t:Test'
displayName: Run xUnit Tests
- task: PublishTestResults@2
inputs:
testRunner: XUnit
testResultsFiles: '**/*.Tests.xml'
displayName: Publish xUnit Test Results