-
Notifications
You must be signed in to change notification settings - Fork 11
/
azure-pipelines.yml
102 lines (80 loc) · 5.83 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
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.Repository.LocalPath)'
stages:
- stage: BuildAndTest
displayName: Build and Test LabVIEW Project
jobs:
- job: ExecuteScripts
displayName: Execute Sequential Scripts
steps:
- script: |
powershell -NoProfile -ExecutionPolicy Bypass -File "$(RelativePath)\pipeline\scripts\Applyvipc.ps1" -MinimumSupportedLVVersion 2021 -SupportedBitness 32 -RelativePath "$(RelativePath)" -VIPCPath "Tooling\deployment\Dependencies.vipc" -VIP_LVVersion "2021"
displayName: Apply VIPC (32-bit)
- script: |
powershell -NoProfile -ExecutionPolicy Bypass -File "$(RelativePath)\pipeline\scripts\AddTokenToLabVIEW.ps1" -MinimumSupportedLVVersion 2021 -SupportedBitness 32 -RelativePath "$(RelativePath)"
displayName: Add Token to LabVIEW (32-bit)
- script: |
powershell -NoProfile -ExecutionPolicy Bypass -File "$(RelativePath)\pipeline\scripts\Close_LabVIEW.ps1" -MinimumSupportedLVVersion 2021 -SupportedBitness 32
displayName: Close LabVIEW (32-bit)
- script: |
powershell -NoProfile -ExecutionPolicy Bypass -File "$(RelativePath)\pipeline\scripts\Prepare_LabVIEW_source.ps1" -MinimumSupportedLVVersion 2021 -SupportedBitness 32 -RelativePath "$(RelativePath)" -LabVIEW_Project "lv_icon_editor" -Build_Spec "Editor Packed Library"
displayName: Prepare LabVIEW Source (32-bit)
- script: |
powershell -NoProfile -ExecutionPolicy Bypass -File "$(RelativePath)\pipeline\scripts\Close_LabVIEW.ps1" -MinimumSupportedLVVersion 2021 -SupportedBitness 32
displayName: Close LabVIEW After Preparation (32-bit)
- script: |
powershell -NoProfile -ExecutionPolicy Bypass -File "$(RelativePath)\pipeline\scripts\RunUnitTests.ps1" -MinimumSupportedLVVersion 2021 -SupportedBitness 32 -RelativePath "$(RelativePath)"
displayName: Run Unit Tests (32-bit)
- script: |
powershell -NoProfile -ExecutionPolicy Bypass -File "$(RelativePath)\pipeline\scripts\Build_lvlibp.ps1" -MinimumSupportedLVVersion 2021 -SupportedBitness 32 -RelativePath "$(RelativePath)"
displayName: Build Packed Library (32-bit)
- script: |
powershell -NoProfile -ExecutionPolicy Bypass -File "$(RelativePath)\pipeline\scripts\RestoreSetupLVSource.ps1" -MinimumSupportedLVVersion 2021 -SupportedBitness 32 -RelativePath "$(RelativePath)" -LabVIEW_Project "lv_icon_editor" -Build_Spec "Editor Packed Library"
displayName: Restore LabVIEW Source Setup (32-bit)
continueOnError: true
- script: |
powershell -NoProfile -ExecutionPolicy Bypass -File "$(RelativePath)\pipeline\scripts\Rename-File.ps1" -CurrentFilename "$(RelativePath)\resource\plugins\lv_icon.lvlibp" -NewFilename "lv_icon_x86.lvlibp"
displayName: Rename File (32-bit)
- script: |
powershell -NoProfile -ExecutionPolicy Bypass -File "$(RelativePath)\pipeline\scripts\Applyvipc.ps1" -MinimumSupportedLVVersion 2021 -SupportedBitness 64 -RelativePath "$(RelativePath)" -VIPCPath "Tooling\deployment\Dependencies.vipc" -VIP_LVVersion "2021"
displayName: Apply VIPC (64-bit)
- script: |
powershell -NoProfile -ExecutionPolicy Bypass -File "$(RelativePath)\pipeline\scripts\AddTokenToLabVIEW.ps1" -MinimumSupportedLVVersion 2021 -SupportedBitness 64 -RelativePath "$(RelativePath)"
displayName: Add Token to LabVIEW (64-bit)
- script: |
powershell -NoProfile -ExecutionPolicy Bypass -File "$(RelativePath)\pipeline\scripts\Close_LabVIEW.ps1" -MinimumSupportedLVVersion 2021 -SupportedBitness 64
displayName: Close LabVIEW (64-bit)
- script: |
powershell -NoProfile -ExecutionPolicy Bypass -File "$(RelativePath)\pipeline\scripts\Prepare_LabVIEW_source.ps1" -MinimumSupportedLVVersion 2021 -SupportedBitness 64 -RelativePath "$(RelativePath)" -LabVIEW_Project "lv_icon_editor" -Build_Spec "Editor Packed Library"
displayName: Prepare LabVIEW Source (64-bit)
- script: |
powershell -NoProfile -ExecutionPolicy Bypass -File "$(RelativePath)\pipeline\scripts\Close_LabVIEW.ps1" -MinimumSupportedLVVersion 2021 -SupportedBitness 64
displayName: Close LabVIEW After Preparation (64-bit)
- script: |
powershell -NoProfile -ExecutionPolicy Bypass -File "$(RelativePath)\pipeline\scripts\RunUnitTests.ps1" -MinimumSupportedLVVersion 2021 -SupportedBitness 64 -RelativePath "$(RelativePath)"
displayName: Run Unit Tests (64-bit)
- script: |
powershell -NoProfile -ExecutionPolicy Bypass -File "$(RelativePath)\pipeline\scripts\Build_lvlibp.ps1" -MinimumSupportedLVVersion 2021 -SupportedBitness 64 -RelativePath "$(RelativePath)"
displayName: Build Packed Library (64-bit)
- script: |
powershell -NoProfile -ExecutionPolicy Bypass -File "$(RelativePath)\pipeline\scripts\RestoreSetupLVSource.ps1" -MinimumSupportedLVVersion 2021 -SupportedBitness 64 -RelativePath "$(RelativePath)" -LabVIEW_Project "lv_icon_editor" -Build_Spec "Editor Packed Library"
displayName: Restore LabVIEW Source Setup (64-bit)
continueOnError: true
- script: |
powershell -NoProfile -ExecutionPolicy Bypass -File "$(RelativePath)\pipeline\scripts\Rename-File.ps1" -CurrentFilename "$(RelativePath)\resource\plugins\lv_icon.lvlibp" -NewFilename "lv_icon_x64.lvlibp"
displayName: Rename File (64-bit)
- script: |
powershell -NoProfile -ExecutionPolicy Bypass -File "$(RelativePath)\pipeline\scripts\build_vip.ps1" -SupportedBitness 64 -RelativePath "$(RelativePath)" -VIPBPath "Tooling\deployment\NI Icon editor.vipb" -VIP_LVVersion 2021 -MinimumSupportedLVVersion 2021
displayName: Build VIP Package