forked from LLNL/Umpire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
122 lines (121 loc) · 3.54 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
variables:
DO_BUILD: 'yes'
DO_TEST: 'yes'
DO_INSTALL: 'yes'
COMPILER: 'g++'
jobs:
- job: Windows #temporarily commenting out until cmake/azure version issue resolved
strategy:
matrix:
shared:
SHARED_ARGS: '-DBUILD_SHARED_LIBS=On -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=On'
static:
SHARED_ARGS: '-DBUILD_SHARED_LIBS=Off'
pool:
vmImage: 'windows-2019'
variables:
CMAKE_EXTRA_FLAGS: '-DENABLE_WARNINGS_AS_ERRORS=Off -DUMPIRE_ENABLE_FILESYSTEM=On -DUMPIRE_ENABLE_TOOLS=Off -DUMPIRE_ENABLE_DEVELOPER_BENCHMARKS=On -DUMPIRE_ENABLE_BENCHMARKS=Off -DBLT_CXX_STD="" -DCMAKE_CXX_STANDARD=17 -DCMAKE_BUILD_TYPE=Release'
steps:
- checkout: self
clean: boolean
submodules: recursive
- task: CMake@1
inputs:
workingDir: 'build'
cmakeArgs: '$(CMAKE_EXTRA_FLAGS) $(SHARED_ARGS) ../'
- task: CMake@1
inputs:
workingDir: 'build'
cmakeArgs: '--build . --config Release --verbose'
# - task: CmdLine@2
# inputs:
# script: 'ctest.exe -T test -C Release'
# workingDirectory: 'build'
# condition: eq( variables['Agent.OS'], 'Windows_NT')
# - task: PublishTestResults@2
# inputs:
# testResultsFormat: 'cTest'
# testResultsFiles: '**/Test.xml'
- job: Docker
strategy:
matrix:
gcc7:
docker_target: gcc7
gcc8:
docker_target: gcc8
gcc9:
docker_target: gcc9
gcc11:
docker_target: gcc11
clang10:
docker_target: clang10
clang11:
docker_target: clang11
clang12:
docker_target: clang12
nvcc10:
docker_target: nvcc10
nvcc11:
docker_target: nvcc11
sycl:
docker_target: sycl
hip:
docker_target: hip
umap_build:
docker_target: umap_build
pool:
vmImage: 'ubuntu-latest'
variables:
DOCKER_BUILDKIT: '1'
CMAKE_EXTRA_FLAGS: '-DUMPIRE_ENABLE_DEVELOPER_BENCHMARKS=On -DUMPIRE_ENABLE_DEVELOPER_DEFAULTS=On -DCMAKE_BUILD_TYPE=Release'
steps:
- checkout: self
clean: boolean
submodules: recursive
- task: Docker@1
inputs:
command: build
dockerFile: Dockerfile
arguments: '--target $(docker_target)'
- script: |
CID=$(docker create llnl/umpire:$(Build.BuildId))
echo ${CID}
docker cp ${CID}:/home/axom/workspace/build local-build
docker rm ${CID}
displayName: 'Copy test artifacts'
condition: ne( variables['docker_target'], 'nvcc')
- script: |
bash <(curl -s https://raw.githubusercontent.com/codecov/codecov-bash/0b376529f626b50b7d4a9fb734e0e50d28b9b91e/codecov) >& /dev/null
displayName: 'Upload code coverage'
condition: eq( variables['docker_target'], 'gcc')
- task: PublishTestResults@2
inputs:
testResultsFormat: 'cTest'
testResultsFiles: '**/Test.xml'
- job: Mac
pool:
vmImage: 'macOS-latest'
variables:
CMAKE_EXTRA_FLAGS: '-DENABLE_WARNINGS_AS_ERRORS=Off -DUMPIRE_ENABLE_DEVELOPER_DEFAULTS=On -DUMPIRE_ENABLE_DEVELOPER_BENCHMARKS=On -DCMAKE_BUILD_TYPE=Release'
steps:
- checkout: self
clean: boolean
submodules: recursive
- task: CMake@1
inputs:
workingDir: 'build'
cmakeArgs: '$(CMAKE_EXTRA_FLAGS) ../'
- script: |
cd build
make
displayName: 'OSX Build'
condition: eq( variables['Agent.OS'], 'Darwin')
- script: |
cd build
ctest -T test --output-on-failure
displayName: 'OSX Test'
condition: eq( variables['Agent.OS'], 'Darwin')
- task: PublishTestResults@2
inputs:
testResultsFormat: 'cTest'
testResultsFiles: '**/Test.xml'