-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathazure-pipelines.yml
43 lines (43 loc) · 1.05 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
jobs:
- job: Docker
timeoutInMinutes: 360
strategy:
matrix:
gcc:
docker_target: gcc
clang:
docker_target: clang
#intel:
#docker_target: intel
#cuda:
#docker_target: cuda
#hip:
#docker_target: hip
#sycl:
#docker_target: sycl
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')