-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
45 lines (45 loc) · 1.1 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
jobs:
- job: Docker
timeoutInMinutes: 360
strategy:
matrix:
gcc7:
docker_target: gcc7
gcc8:
docker_target: gcc8
gcc9:
docker_target: gcc9
clang10:
docker_target: clang10
clang11:
docker_target: clang11
clang12:
docker_target: clang12
clang13:
docker_target: clang13
pool:
vmImage: 'ubuntu-latest'
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/chai/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')