-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
44 lines (42 loc) · 992 Bytes
/
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
strategy:
matrix:
gcc5:
docker_target: gcc5
gcc6:
docker_target: gcc6
gcc7:
docker_target: gcc7
gcc8:
docker_target: gcc8
clang4:
docker_target: clang4
clang5:
docker_target: clang5
clang7:
docker_target: clang6
nvcc:
docker_target: nvcc
variables:
DOCKER_BUILDKIT: '1'
steps:
- checkout: self
clean: boolean
submodules: recursive
- task: Docker@1
inputs:
command: build
dockerFile: Dockerfile
arguments: '--target $(docker_target)'
- script: |
CID=$(docker create llnl/chai:$(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')
- task: PublishTestResults@2
inputs:
testResultsFormat: 'cTest'
testResultsFiles: '**/Test.xml'
testRunTitle: '$(docker_target) Tests'
condition: ne( variables['docker_target'], 'nvcc')