-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathazure_nightly.yml
More file actions
111 lines (93 loc) · 3.21 KB
/
azure_nightly.yml
File metadata and controls
111 lines (93 loc) · 3.21 KB
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
103
104
105
106
107
108
109
110
111
schedules:
- cron: "0 8 * * *"
displayName: "Nightly build"
branches:
include:
- master
always: true
pr: none
trigger: none
jobs:
- job:
strategy:
matrix:
Neon:
agentName: Neon
buildType: Debug
pool:
name: BlueQuartz Self Hosted
demands:
- Agent.Name -equals $(agentName)
- BQ.NightlyBuild
workspace:
clean: all
timeoutInMinutes: 120
variables:
dream3d_source_dir: $(Build.Repository.LocalPath)/Workspace/DREAM3D
ci_build_dir: $(Build.Repository.LocalPath)/Build
model_type: Nightly
steps:
- script: |
echo Agent.Name=$(Agent.Name)
echo Agent.OS=$(Agent.OS)
echo Agent.WorkFolder=$(Agent.WorkFolder)
displayName: Dump Azure Variables
- bash: |
echo "##vso[task.setvariable variable=DREAM3D_NIGHTLY_CACHE]$DREAM3D_NIGHTLY_CACHE"
echo DREAM3D_NIGHTLY_CACHE=$DREAM3D_NIGHTLY_CACHE
condition: or(eq(variables['Agent.OS'], 'Linux'), eq(variables['Agent.OS'], 'Darwin'))
displayName: Copy Environment Variables (Linux/macOS)
- powershell: |
Write-Host "##vso[task.setvariable variable=DREAM3D_NIGHTLY_CACHE]$DREAM3D_NIGHTLY_CACHE"
echo DREAM3D_NIGHTLY_CACHE=$DREAM3D_NIGHTLY_CACHE
condition: eq(variables['Agent.OS'], 'Windows_NT')
displayName: Copy Environment Variables (Windows)
- script: |
cmake -G Ninja -S $(Build.Repository.LocalPath) -B $(ci_build_dir) -DCI_CLONE_DREAM3D_DATA:BOOL=OFF
cmake --build $(ci_build_dir)
displayName: Clone Repositories
- script: |
cmake -S $(dream3d_source_dir) -B $(Build.BinariesDirectory) -G Ninja -C $(DREAM3D_NIGHTLY_CACHE) -DCMAKE_BUILD_TYPE:STRING=$(buildType) -DSITE:STRING="$(Agent.MachineName).bluequartz.net"
displayName: Configure DREAM3D
- script: |
cmake --build $(Build.BinariesDirectory) --config $(buildType) --target $(model_type)Start
displayName: CDash Start
- bash: |
cmake --build $(Build.BinariesDirectory) --config $(buildType) --target $(model_type)Update
status=$?
cmake --build $(Build.BinariesDirectory) --config $(buildType) --target $(model_type)Submit
exit $status
displayName: CDash Update
- bash: |
cd $(Build.BinariesDirectory)
ctest -V -C $(buildType) -D $(model_type)Configure
status=$?
ctest -C $(buildType) -D $(model_type)Submit
exit $status
displayName: CDash Configure
- bash: |
cd $(Build.BinariesDirectory)
ctest -V -C $(buildType) -D $(model_type)Build
status=$?
ctest -C $(buildType) -D $(model_type)Submit
exit $status
displayName: CDash Build
- bash: |
cd $(Build.BinariesDirectory)
ctest -C $(buildType) -D $(model_type)Test --timeout 7200
status=$?
ctest -C $(buildType) -D $(model_type)Submit
exit $status
continueOnError: true
displayName: CDash Test
- task: PublishTestResults@2
inputs:
testResultsFormat: CTest
testResultsFiles: $(Build.BinariesDirectory)/Testing/*/Test.xml
testRunTitle: CTest_$(Agent.Name)_$(Agent.OS)
failTaskOnFailedTests: true
displayName: Publish Test Results
- script: |
cd $(Build.BinariesDirectory)
cpack -C $(buildType) -V
displayName: Packing DREAM3D