-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathazure-pipelines.yml
133 lines (124 loc) · 4.91 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
#
# Copyright (c) 2019-2024, Lawrence Livermore National Security, LLC and
# other Serac Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (BSD-3-Clause)
#
variables:
Clang_14_ImageName: 'seracllnl/tpls:clang-14_08-15-24_21h-49m'
GCC_13_ImageName: 'seracllnl/tpls:gcc-13_08-15-24_21h-49m'
CUDA_12_ImageName: 'seracllnl/tpls:cuda-12_08-15-24_21h-49m'
jobs:
- job: Build_and_Test
strategy:
matrix:
# Skipping running unit tests on CUDA, since the Azure VMs we use do not contain GPUs
linux_cuda12_debug:
VM_ImageName: 'ubuntu-22.04'
Compiler_ImageName: $(CUDA_12_ImageName)
TEST_TARGET: 'linux_cuda12'
HOST_CONFIG: '[email protected]_cuda.cmake'
BUILD_TYPE: 'Debug'
CMAKE_OPTS: '-DBUILD_SHARED_LIBS=ON -DENABLE_WARNINGS_AS_ERRORS=OFF'
BUILD_SRC_OPTS: '--skip-install --skip-tests'
linux_cuda12_release:
VM_ImageName: 'ubuntu-22.04'
Compiler_ImageName: $(CUDA_12_ImageName)
TEST_TARGET: 'linux_cuda12'
HOST_CONFIG: '[email protected]_cuda.cmake'
BUILD_TYPE: 'Release'
CMAKE_OPTS: '-DBUILD_SHARED_LIBS=ON -DENABLE_WARNINGS_AS_ERRORS=OFF'
BUILD_SRC_OPTS: '--skip-install --skip-tests'
linux_gcc13_debug:
VM_ImageName: 'ubuntu-22.04'
Compiler_ImageName: $(GCC_13_ImageName)
TEST_TARGET: 'linux_gcc13'
HOST_CONFIG: '[email protected]'
BUILD_TYPE: 'Debug'
CMAKE_OPTS: '-DBUILD_SHARED_LIBS=ON'
linux_gcc13_release:
VM_ImageName: 'ubuntu-22.04'
Compiler_ImageName: $(GCC_13_ImageName)
TEST_TARGET: 'linux_gcc13'
HOST_CONFIG: '[email protected]'
BUILD_TYPE: 'Release'
# gcc@13 + Release hangs in solid_mechanics when > -O2
CMAKE_OPTS: '-DBUILD_SHARED_LIBS=ON -DCMAKE_CXX_FLAGS_RELEASE=-O2'
linux_clang14_debug:
VM_ImageName: 'ubuntu-22.04'
Compiler_ImageName: $(Clang_14_ImageName)
TEST_TARGET: 'linux_clang14'
HOST_CONFIG: '[email protected]'
BUILD_TYPE: 'Debug'
CMAKE_OPTS: '-DBUILD_SHARED_LIBS=ON'
linux_clang14_release:
VM_ImageName: 'ubuntu-22.04'
Compiler_ImageName: $(Clang_14_ImageName)
TEST_TARGET: 'linux_clang14'
HOST_CONFIG: '[email protected]'
BUILD_TYPE: 'Release'
CMAKE_OPTS: '-DBUILD_SHARED_LIBS=ON'
linux_clang14_codevelop:
VM_ImageName: 'ubuntu-22.04'
Compiler_ImageName: $(Clang_14_ImageName)
TEST_TARGET: 'linux_clang14'
HOST_CONFIG: '[email protected]'
BUILD_TYPE: 'Debug'
CMAKE_OPTS: '-DSERAC_ENABLE_CODEVELOP=ON'
BUILD_SRC_OPTS: '--skip-install'
pool:
vmImage: $(VM_ImageName)
steps:
- checkout: self
clean: true
submodules: recursive
- script: |
echo " -e $TEST_TARGET -e HOST_CONFIG $(Compiler_ImageName) ./scripts/llnl/build_src.py $BUILD_SRC_OPTS -v --host-config $HOST_CONFIG --extra-cmake-options \"${CMAKE_OPTS} -DCMAKE_BUILD_TYPE=$BUILD_TYPE\""
docker run --rm -v `pwd`:/home/serac/serac -e TEST_TARGET -e HOST_CONFIG $(Compiler_ImageName) ./serac/scripts/llnl/build_src.py $BUILD_SRC_OPTS -v --host-config $HOST_CONFIG --extra-cmake-options "${CMAKE_OPTS} -DCMAKE_BUILD_TYPE=$BUILD_TYPE" --jobs 4
displayName: '$(TEST_TARGET) Build & Test'
- task: PublishTestResults@2
inputs:
testResultsFormat: 'cTest'
testResultsFiles: '**/Test.xml'
testRunTitle: '$(TEST_TARGET) Tests'
failTaskOnFailedTests: true
- job: Check_Code
variables:
VM_ImageName: 'ubuntu-22.04'
Compiler_ImageName: $(Clang_14_ImageName)
TEST_TARGET: 'linux_clang14'
HOST_CONFIG: '[email protected]'
strategy:
matrix:
coverage:
DO_COVERAGE_CHECK: 'yes'
DO_DOCS_CHECK: 'no'
DO_STYLE_CHECK: 'no'
DO_HEADER_CHECK: 'no'
docs:
DO_COVERAGE_CHECK: 'no'
DO_DOCS_CHECK: 'yes'
DO_STYLE_CHECK: 'no'
DO_HEADER_CHECK: 'no'
style:
DO_COVERAGE_CHECK: 'no'
DO_DOCS_CHECK: 'no'
DO_STYLE_CHECK: 'yes'
DO_HEADER_CHECK: 'no'
header:
DO_COVERAGE_CHECK: 'no'
DO_DOCS_CHECK: 'no'
DO_STYLE_CHECK: 'no'
DO_HEADER_CHECK: 'yes'
pool:
vmImage: $(VM_ImageName)
steps:
- checkout: self
clean: true
submodules: recursive
# https://docs.codecov.io/docs/testing-with-docker
- script: |
ci_env=`bash <(curl -s https://codecov.io/env)`
echo " -e DO_COVERAGE_CHECK -e DO_DOCS_CHECK -e DO_STYLE_CHECK -e DO_HEADER_CHECK -e HOST_CONFIG ./serac/scripts/azure-pipelines/linux-check.sh"
docker run --rm -v `pwd`:/home/serac/serac $ci_env -e DO_COVERAGE_CHECK -e DO_DOCS_CHECK -e DO_STYLE_CHECK -e DO_HEADER_CHECK -e HOST_CONFIG $(Compiler_ImageName) ./serac/scripts/azure-pipelines/linux-check.sh
displayName: '$(TEST_TARGET) Check'