-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathazure-pipelines.yml
113 lines (104 loc) · 3.9 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
# Copyright (c) 2017-2025, Lawrence Livermore National Security, LLC and
# other Tribol Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (MIT)
variables:
Clang_14_ImageName: 'seracllnl/tpls:clang-14_04-16-24_07h-15m'
GCC_13_ImageName: 'seracllnl/tpls:gcc-13_04-16-24_07h-15m'
HOME_DIR: '/home/serac'
jobs:
- job: Build_and_Test
strategy:
matrix:
linux_gcc13_debug:
VM_ImageName: 'ubuntu-22.04'
Compiler_ImageName: $(GCC_13_ImageName)
TEST_TARGET: 'linux_gcc13'
HOST_CONFIG: '[email protected]'
BUILD_TYPE: 'Debug'
BUILD_REDECOMP: 'On'
linux_gcc13_debug_noredecomp:
VM_ImageName: 'ubuntu-22.04'
Compiler_ImageName: $(GCC_13_ImageName)
TEST_TARGET: 'linux_gcc13'
HOST_CONFIG: '[email protected]'
BUILD_TYPE: 'Debug'
BUILD_REDECOMP: 'Off'
linux_gcc13_release:
VM_ImageName: 'ubuntu-22.04'
Compiler_ImageName: $(GCC_13_ImageName)
TEST_TARGET: 'linux_gcc13'
HOST_CONFIG: '[email protected]'
BUILD_TYPE: 'Release'
BUILD_REDECOMP: 'On'
linux_clang14_debug:
VM_ImageName: 'ubuntu-22.04'
Compiler_ImageName: $(Clang_14_ImageName)
TEST_TARGET: 'linux_clang14'
HOST_CONFIG: '[email protected]'
BUILD_TYPE: 'Debug'
BUILD_REDECOMP: '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'
BUILD_REDECOMP: 'On'
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_DIR)/tribol -e TEST_TARGET -e HOST_CONFIG $(Compiler_ImageName) ./tribol/scripts/llnl/build_src.py $BUILD_SRC_OPTS -v --host-config $HOST_CONFIG --extra-cmake-options "$(BASE_CMAKE_OPTS) ${CMAKE_OPTS} -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_REDECOMP=$(BUILD_REDECOMP)"
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'
# TODO: enable to check doxygen for warnings
# 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 HOST_CONFIG ./tribol/scripts/azure-pipelines/linux-check.sh"
docker run --rm -v `pwd`:$(HOME_DIR)/tribol $ci_env -e DO_COVERAGE_CHECK -e DO_DOCS_CHECK -e DO_STYLE_CHECK -e HOST_CONFIG $(Compiler_ImageName) ./tribol/scripts/azure-pipelines/linux-check.sh
displayName: '$(TEST_TARGET) Check'