forked from reactjs/React.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
39 lines (31 loc) · 893 Bytes
/
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
trigger:
- main
- ci-updates
pool:
vmImage: 'windows-2019'
variables:
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
buildType: 'Release'
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
- script: npm install --global npm
- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
inputs:
packageType: 'sdk'
version: '3.1.x'
- task: VSBuild@1
inputs:
solution: 'build.proj'
msbuildArgs: '/p:PackageOutputDir="$(build.artifactStagingDirectory)"'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: DotNetCoreCLI@2
inputs:
command: 'test'
projects: 'tests/React.Tests/React.Tests.csproj'
arguments: '--no-build --configuration $(buildConfiguration)'
- task: PublishBuildArtifacts@1