forked from microsoft/MSBuildStaticGraphTester
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
81 lines (71 loc) · 2.13 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
trigger:
- master
# variables:
# system.debug: true
# SYSTEM_ACCESSTOKEN: $(System.AccessToken)
# SYSTEM.ACCESSTOKEN: $(System.AccessToken)
jobs:
- job: BuildOnWindows
displayName: "Build and test on Windows"
pool:
name: 'Hosted'
vmImage: 'windows-2019'
steps:
# - task: PowerShell@2
# displayName: Show repo contents
# inputs:
# targetType: inline
# script: |
# Write-Output "$(Build.SourcesDirectory)"
# Get-ChildItem "$(Build.SourcesDirectory)"
# - task: PowerShell@2
# displayName: Clone repository
# inputs:
# targetType: inline
# script: |
# & "C:\Program Files\Git\cmd\git.exe" clone https://github.com/microsoft/msbuild.git "$(Build.SourcesDirectory)\repo\msbuild2"
# - task: PowerShell@2
# displayName: Checkout repository
# inputs:
# targetType: inline
# script: |
# cd "$(Build.SourcesDirectory)\repo\msbuild2"
# & "C:\Program Files\Git\cmd\git.exe" checkout ee8294b5597fe21ca5c44c8fd4c142d27fcec2cb
# - task: PowerShell@2
# displayName: log repository
# inputs:
# targetType: inline
# script: |
# cd "$(Build.SourcesDirectory)\repo\msbuild2"
# & "C:\Program Files\Git\cmd\git.exe" log -3
# - task: PowerShell@2
# displayName: Show repo root content
# inputs:
# targetType: inline
# script: |
# cd "$(Build.SourcesDirectory)\repo\msbuild2"
# Get-ChildItem -Path .
# Get-ChildItem *
- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
version: 3.0.100-preview6-012264
includePreviewVersions: true
installationPath: $(Agent.ToolsDirectory)/dotnet
- task: PowerShell@2
displayName: 'Print .NET Core information'
inputs:
targetType: inline
script: |
dotnet --info
- task: PowerShell@2
displayName: Build and bootstrap repo source
inputs:
filePath: "scripts/build.ps1"
arguments: "-BuildRepos"
- task: PowerShell@2
displayName: Run MSBuild Tests
inputs:
filePath: "scripts/Test.ps1"
arguments: "-includeMSBuildTests"