-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathazure-pipelines.yml
46 lines (41 loc) · 1.31 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
# Removed trigger so pipeline runs only when requested via API
# trigger:
# branches:
# include:
# - main
# - develop
name: $(Build.BuildID)
pool:
name: "Default"
demands: "iconeditor -equals true"
variables:
build_id: $(Build.BuildID)
build_revision: $[counter('buildCounter',1)]
build_version: '1.0.$(Build.BuildID).$(build_revision)'
RelativePath: '$(Build.SourcesDirectory)'
RelativePathScripts: '$(Build.SourcesDirectory)\pipeline\scripts'
stages:
- stage: BuildAndTest
displayName: Build and Test LabVIEW Project
jobs:
- job: ExecuteScripts
displayName: Execute Scripts
steps:
- task: PowerShell@2
displayName: 'Set agent into development mode'
inputs:
filePath: '$(RelativePathScripts)\Set_Development_Mode.ps1'
arguments: '-RelativePath "$(RelativePath)"'
workingDirectory: '$(RelativePathScripts)'
failOnStderr: true
errorActionPreference: 'Stop'
- task: PowerShell@2
displayName: 'Test and Build the Icon Editor'
inputs:
filePath: '$(RelativePathScripts)\Build.ps1'
arguments: >
-RelativePath "$(RelativePath)"
-AbsolutePathScripts "$(RelativePathScripts)"
workingDirectory: '$(RelativePathScripts)'
failOnStderr: true
errorActionPreference: 'Stop'