forked from LLNL/serac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
101 lines (92 loc) · 3.62 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
#
# Copyright (c) 2019-2022, 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_10_ImageName: 'seracllnl/tpls:clang-10_02-02-22_17h-50m'
GCC_9_ImageName: 'seracllnl/tpls:gcc-9_02-02-22_17h-50m'
jobs:
- job: Build_and_Test
strategy:
matrix:
linux_gcc9_debug:
VM_ImageName: 'ubuntu-20.04'
Compiler_ImageName: $(GCC_9_ImageName)
TEST_TARGET: 'linux_gcc9'
HOST_CONFIG: '[email protected]'
BUILD_TYPE: 'Debug'
linux_gcc9_release:
VM_ImageName: 'ubuntu-20.04'
Compiler_ImageName: $(GCC_9_ImageName)
TEST_TARGET: 'linux_gcc9'
HOST_CONFIG: '[email protected]'
BUILD_TYPE: 'Release'
linux_clang10_debug:
VM_ImageName: 'ubuntu-20.04'
Compiler_ImageName: $(Clang_10_ImageName)
TEST_TARGET: 'linux_clang10'
HOST_CONFIG: '[email protected]'
BUILD_TYPE: 'Debug'
linux_clang10_release:
VM_ImageName: 'ubuntu-20.04'
Compiler_ImageName: $(Clang_10_ImageName)
TEST_TARGET: 'linux_clang10'
HOST_CONFIG: '[email protected]'
BUILD_TYPE: 'Release'
linux_clang10_codevelop:
VM_ImageName: 'ubuntu-20.04'
Compiler_ImageName: $(Clang_10_ImageName)
TEST_TARGET: 'linux_clang10'
HOST_CONFIG: '[email protected]'
BUILD_TYPE: 'Debug'
CMAKE_OPTS: '-DSERAC_ENABLE_CODEVELOP=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 -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 -v --host-config $HOST_CONFIG --extra-cmake-options "${CMAKE_OPTS} -DCMAKE_BUILD_TYPE=$BUILD_TYPE"
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-20.04'
Compiler_ImageName: $(Clang_10_ImageName)
TEST_TARGET: 'linux_clang10'
HOST_CONFIG: '[email protected]'
strategy:
matrix:
coverage:
DO_COVERAGE_CHECK: 'yes'
DO_DOCS_CHECK: 'no'
DO_STYLE_CHECK: 'no'
docs:
DO_COVERAGE_CHECK: 'no'
DO_DOCS_CHECK: 'yes'
DO_STYLE_CHECK: 'no'
style:
DO_COVERAGE_CHECK: 'no'
DO_DOCS_CHECK: 'no'
DO_STYLE_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 ./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 HOST_CONFIG $(Compiler_ImageName) ./serac/scripts/azure-pipelines/linux-check.sh
displayName: '$(TEST_TARGET) Check'