-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
multi-stage.yaml
71 lines (62 loc) · 2.04 KB
/
multi-stage.yaml
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
# Copyright (c) .NET Foundation and Contributors
# See LICENSE file in the project root for full license information.
# The Pipeline is going to be called by the GitHub action.
# Manual trigger is always possible and it can show up.
# In theory, the template should not be trigger at all.
trigger: none
pr: none
# add nf-tools repo to resources (for Azure Pipelines templates)
resources:
repositories:
- repository: templates
type: github
name: nanoframework/nf-tools
endpoint: nanoframework
parameters:
- name: appComponents
displayName: List of capabilities to run the tests on
type: object
default:
# nothing at merge, just the build
- none
# - XIAO_ESP32C3
# - ESP32_C3_REV3
# - ESP32_REV0
stages:
- stage: Build
displayName: 'Build'
jobs:
- job: Build
displayName: 'Build job'
pool:
# default is the following VM Image
vmImage: 'windows-latest'
# playing with TestStream pool
#name: TestStream
variables:
DOTNET_NOLOGO: true
solution: 'nanoFramework.IoT.TestStream.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
nugetPackageName: 'nanoFramework.IoT.TestStream'
steps:
# step from template @ nf-tools repo
# only build and run tests
- template: azure-pipelines-templates/class-lib-build-only.yml@templates
parameters:
runUnitTests: false
unitTestRunsettings: '$(System.DefaultWorkingDirectory)\.runsettings'
#sonarCloudProject: 'nanoframework_lib-nanoFramework.IoT.TestStream'
skipSonarCloudAnalysis: true
- task: PublishPipelineArtifact@1
displayName: Publish Pipeline Artifact copy
inputs:
path: '$(System.DefaultWorkingDirectory)'
artifactName: 'Artifacts'
- ${{ each appComponents in parameters.appComponents }}:
- ${{ if ne(appComponents, 'none') }}:
- template: test.yml
parameters:
appComponents: ${{ appComponents }}
unitTestRunsettings:
- 'UnitTestStream/nano.runsettings,UnitTestStream/bin/Release/NFUnitTest.dll'