-
Notifications
You must be signed in to change notification settings - Fork 101
/
Copy pathazure-pipelines.yml
77 lines (70 loc) · 1.81 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
# Trigger on pushes to `master`
trigger:
branches:
include:
- master
paths:
include:
- contrib
- src
- test
- Project.toml
# Trigger on PRs against `master`
pr:
branches:
include:
- master
paths:
include:
- contrib
- src
- test
- Project.toml
# By default, use the `Native` pool of agents
pool: BinaryBuilder
variables:
JULIA: unbuffer julia-1.7 --project=$(Build.SourcesDirectory) --color=yes
BINARYBUILDER_AUTOMATIC_APPLE: true
BINARYBUILDER_USE_CCACHE: true
CI: true
jobs:
- job: Info
steps:
- checkout: self
fetchDepth: 99999
clean: true
- bash: |
set -e
$(JULIA) -e 'using Pkg; Pkg.Registry.update(); Pkg.instantiate()'
$(JULIA) -e 'using BinaryBuilder; BinaryBuilder.versioninfo()'
$(JULIA) -e 'using Pkg; Pkg.status(; mode=PKGMODE_MANIFEST)'
name: SystemInfo
- job: Test
dependsOn: Info
timeoutInMinutes: 120
strategy:
matrix:
Privileged_SquashFS:
BINARYBUILDER_RUNNER: privileged
BINARYBUILDER_USE_SQUASHFS: true
Unprivileged_Unpacked:
BINARYBUILDER_RUNNER: unprivileged
BINARYBUILDER_USE_SQUASHFS: false
BINARYBUILDER_FULL_SHARD_TEST: true
Docker_Unpacked:
BINARYBUILDER_RUNNER: docker
BINARYBUILDER_USE_SQUASHFS: false
steps:
- bash: |
set -e
$(JULIA) -e 'using Pkg; Pkg.gc()'
$(JULIA) --check-bounds=yes --inline=yes -e 'using Pkg; Pkg.Registry.update(); Pkg.instantiate(); Pkg.test(coverage=true)'
$(JULIA) -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())' || true
name: Test
- bash: |
for dir in $(find ${TMPDIR} -name .mounts); do
sudo umount ${dir}/* || true
done
rm -rf ${TMPDIR}/jl_* || true
name: Cleanup
condition: always()