-
Notifications
You must be signed in to change notification settings - Fork 27
/
azure-pipelines.yml
153 lines (145 loc) · 6.03 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
#
# Copyright (c) 2017-2024, Lawrence Livermore National Security, LLC and
# other Axom Project Developers. See the top-level LICENSE file for details.
#
# SPDX-License-Identifier: (BSD-3-Clause)
#
variables:
DO_BUILD: 'yes'
DO_TEST: 'yes'
DO_CLEAN: 'no'
DO_BENCHMARKS: 'no'
CLANG14_IMAGENAME: 'axom/tpls:clang-14_10-10-24_01h-31m'
GCC13_IMAGENAME: 'axom/tpls:gcc-13_10-10-24_01h-31m'
system.debug: false
jobs:
- job: Build_and_Test
timeoutInMinutes: 90
strategy:
matrix:
linux_gcc13:
VM_ImageName: 'ubuntu-22.04'
Compiler_ImageName: '$(GCC13_IMAGENAME)'
CMAKE_EXTRA_FLAGS: '-DBUILD_SHARED_LIBS=ON -DAXOM_ENABLE_MFEM_SIDRE_DATACOLLECTION:BOOL=ON -DENABLE_BENCHMARKS:BOOL=ON'
COMPILER: 'g++'
TEST_TARGET: 'linux_gcc13'
HOST_CONFIG: '[email protected]'
DO_BENCHMARKS: 'yes'
linux_gcc13_64bit:
VM_ImageName: 'ubuntu-22.04'
Compiler_ImageName: '$(GCC13_IMAGENAME)'
CMAKE_EXTRA_FLAGS: '-DBUILD_SHARED_LIBS=ON -DAXOM_USE_64BIT_INDEXTYPE:BOOL=ON'
COMPILER: 'g++'
TEST_TARGET: 'linux_gcc13'
HOST_CONFIG: '[email protected]'
linux_clang14:
VM_ImageName: 'ubuntu-22.04'
Compiler_ImageName: '$(CLANG14_IMAGENAME)'
CMAKE_EXTRA_FLAGS: '-DBUILD_SHARED_LIBS=ON -DAXOM_QUEST_ENABLE_EXTRA_REGRESSION_TESTS:BOOL=ON -DENABLE_BENCHMARKS:BOOL=ON'
BUILD_TYPE: 'Release'
COMPILER: 'clang++'
TEST_TARGET: 'linux_clang14'
HOST_CONFIG: '[email protected]'
DO_BENCHMARKS: 'yes'
linux_clang14_noraja:
VM_ImageName: 'ubuntu-22.04'
Compiler_ImageName: '$(CLANG14_IMAGENAME)'
CMAKE_EXTRA_FLAGS: '-DBUILD_SHARED_LIBS=ON -DAXOM_QUEST_ENABLE_EXTRA_REGRESSION_TESTS:BOOL=ON -U RAJA_DIR'
BUILD_TYPE: 'Debug'
COMPILER: 'clang++'
TEST_TARGET: 'linux_clang14'
HOST_CONFIG: '[email protected]'
linux_clang14_noumpire:
VM_ImageName: 'ubuntu-22.04'
Compiler_ImageName: '$(CLANG14_IMAGENAME)'
CMAKE_EXTRA_FLAGS: '-DBUILD_SHARED_LIBS=ON -DAXOM_QUEST_ENABLE_EXTRA_REGRESSION_TESTS:BOOL=ON -U UMPIRE_DIR'
BUILD_TYPE: 'Debug'
COMPILER: 'clang++'
TEST_TARGET: 'linux_clang14'
HOST_CONFIG: '[email protected]'
linux_clang14_noraja_noumpire:
VM_ImageName: 'ubuntu-22.04'
Compiler_ImageName: '$(CLANG14_IMAGENAME)'
CMAKE_EXTRA_FLAGS: '-DBUILD_SHARED_LIBS=ON -DAXOM_QUEST_ENABLE_EXTRA_REGRESSION_TESTS:BOOL=ON -U RAJA_DIR -U UMPIRE_DIR'
BUILD_TYPE: 'Debug'
COMPILER: 'clang++'
TEST_TARGET: 'linux_clang14'
HOST_CONFIG: '[email protected]'
linux_clang14_noprofiling:
VM_ImageName: 'ubuntu-22.04'
Compiler_ImageName: '$(CLANG14_IMAGENAME)'
CMAKE_EXTRA_FLAGS: '-DBUILD_SHARED_LIBS=ON -DAXOM_QUEST_ENABLE_EXTRA_REGRESSION_TESTS:BOOL=ON -U CALIPER_DIR -U ADIAK_DIR'
BUILD_TYPE: 'Debug'
COMPILER: 'clang++'
TEST_TARGET: 'linux_clang14'
HOST_CONFIG: '[email protected]'
osx_gcc:
VM_ImageName: 'macos-13'
CMAKE_EXTRA_FLAGS: '-DAXOM_ENABLE_SIDRE:BOOL=OFF -DAXOM_ENABLE_INLET:BOOL=OFF -DAXOM_ENABLE_KLEE:BOOL=OFF -DAXOM_ENABLE_SINA:BOOL=OFF'
TEST_TARGET: 'osx_gcc'
windows:
VM_ImageName: 'windows-2019'
CMAKE_EXTRA_FLAGS: '-DAXOM_ENABLE_SIDRE:BOOL=OFF -DAXOM_ENABLE_INLET:BOOL=OFF -DAXOM_ENABLE_KLEE:BOOL=OFF -DAXOM_ENABLE_SINA:BOOL=OFF'
TEST_TARGET: 'win_vs'
pool:
vmImage: $(VM_ImageName)
steps:
- checkout: self
clean: true
submodules: recursive
- task: CMake@1
inputs:
workingDir: 'build'
cmakeArgs: '$(CMAKE_EXTRA_FLAGS) ../src'
condition: or( eq( variables['Agent.OS'], 'Windows_NT'), eq( variables['Agent.OS'], 'Darwin'))
- task: VSBuild@1
inputs:
solution: 'build/*.sln'
vsVersion: 'latest'
condition: eq( variables['Agent.OS'], 'Windows_NT')
displayName: 'Visual Studio Build ($(TEST_TARGET))'
- script: |
cd build
ctest -C Debug -T test --output-on-failure -V
condition: eq( variables['Agent.OS'], 'Windows_NT')
displayName: 'Visual Studio Test ($(TEST_TARGET))'
- script: |
cd build
make
condition: eq( variables['Agent.OS'], 'Darwin')
displayName: 'Darwin Build ($(TEST_TARGET))'
- script: |
cd build
ctest -T test --output-on-failure -V
condition: eq( variables['Agent.OS'], 'Darwin')
displayName: 'Darwin Test ($(TEST_TARGET))'
- script: |
echo " -e TEST_TARGET=$TEST_TARGET -e COMPILER=$COMPILER -e DO_BUILD=$DO_BUILD -e DO_TEST=$DO_TEST -e DO_BENCHMARKS=$DO_BENCHMARKS -e $CMAKE_EXTRA_FLAGS $(Compiler_ImageName) ./scripts/azure-pipelines/linux-build_and_test.sh"
docker run --rm --user='root' -v `pwd`:/home/axom/axom $(Compiler_ImageName) chown -R axom /home/axom
docker run --rm -v `pwd`:/home/axom/axom -e TEST_TARGET -e COMPILER -e DO_BUILD -e DO_TEST -e DO_CLEAN -e DO_BENCHMARKS -e HOST_CONFIG -e CMAKE_EXTRA_FLAGS -e BUILD_TYPE $(Compiler_ImageName) ./axom/scripts/azure-pipelines/linux-build_and_test.sh
condition: eq( variables['Agent.OS'], 'Linux')
displayName: 'Linux Build & Test ($(TEST_TARGET))'
- task: PublishTestResults@2
inputs:
testResultsFormat: 'cTest'
testResultsFiles: '**/Test.xml'
testRunTitle: '$(TEST_TARGET) Tests'
failTaskOnFailedTests: true
- job: Check_Style
variables:
VM_ImageName: 'ubuntu-22.04'
Compiler_ImageName: '$(CLANG14_IMAGENAME)'
TEST_TARGET: 'linux_clang14'
HOST_CONFIG: '[email protected]'
CMAKE_EXTRA_FLAGS: '-DENABLE_CLANGFORMAT=ON'
pool:
vmImage: $(VM_ImageName)
steps:
- checkout: self
clean: true
submodules: recursive
- script: |
echo " -e HOST_CONFIG -e CMAKE_EXTRA_FLAGS $(Compiler_ImageName) ./axom/scripts/azure-pipelines/linux-check.sh"
docker run --rm --user='root' -v `pwd`:/home/axom/axom $(Compiler_ImageName) chown -R axom /home/axom
docker run --rm -v `pwd`:/home/axom/axom -e HOST_CONFIG -e CMAKE_EXTRA_FLAGS $(Compiler_ImageName) ./axom/scripts/azure-pipelines/linux-check.sh
displayName: '$(TEST_TARGET) Style Check'