forked from LLNL/serac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
69 lines (62 loc) · 2.39 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
#
# Copyright (c) 2019-2021, Lawrence Livermore National Security, LLC and
# other Serac Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (BSD-3-Clause)
#
jobs:
- job: Build_and_Test
strategy:
matrix:
linux_gcc8:
VM_ImageName: 'ubuntu-20.04'
Compiler_ImageName: 'seracllnl/tpls:gcc-9_07-15-21_05h-56m'
TEST_TARGET: 'linux_gcc9'
HOST_CONFIG: '[email protected]'
linux_clang10:
VM_ImageName: 'ubuntu-20.04'
Compiler_ImageName: 'seracllnl/tpls:clang-10_07-15-21_05h-56m'
TEST_TARGET: 'linux_clang10'
HOST_CONFIG: '[email protected]'
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"
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
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: 'seracllnl/tpls:clang-10_07-15-21_05h-56m'
TEST_TARGET: 'linux_clang10'
HOST_CONFIG: '[email protected]'
strategy:
matrix:
style:
DO_STYLE_CHECK: 'yes'
DO_COVERAGE_CHECK: 'no'
coverage:
DO_STYLE_CHECK: 'no'
DO_COVERAGE_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 $TEST_TARGET -e $COMPILER -e $DO_STYLE_CHECK -e $DO_COVERAGE_CHECK -e $CMAKE_EXTRA_FLAGS $(Compiler_ImageName) ./scripts/azure-pipelines/linux-check.sh"
docker run --rm -v `pwd`:/home/serac/serac $ci_env -e TEST_TARGET -e DO_STYLE_CHECK -e DO_COVERAGE_CHECK -e HOST_CONFIG $(Compiler_ImageName) ./serac/scripts/azure-pipelines/linux-check.sh
displayName: '$(TEST_TARGET) Style Check'