Skip to content

Commit dbc6607

Browse files
authored
Merge pull request #98 from JuliaGPU/ksh/bk
Test downstream packages
2 parents 3d65df4 + 90bc136 commit dbc6607

File tree

1 file changed

+136
-0
lines changed

1 file changed

+136
-0
lines changed

.buildkite/pipeline.yml

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
steps:
2+
- group: "CUDA"
3+
key: "cuda"
4+
steps:
5+
- label: "Julia {{matrix.julia}}"
6+
plugins:
7+
- JuliaCI/julia#v1:
8+
version: "{{matrix.julia}}"
9+
- JuliaCI/julia-test#v1:
10+
test_args: "--quickfail"
11+
allow_reresolve: false
12+
- JuliaCI/julia-coverage#v1:
13+
dirs:
14+
- src
15+
- ext
16+
agents:
17+
queue: "juliagpu"
18+
cuda: "*"
19+
commands: |
20+
julia --project -e '
21+
using Pkg
22+
23+
adapt = pwd()
24+
devdir = mktempdir()
25+
cuda = joinpath(devdir, "CUDA")
26+
println("--- :julia: Installing TestEnv")
27+
Pkg.activate(; temp=true)
28+
Pkg.add("TestEnv")
29+
using TestEnv
30+
31+
println("--- :julia: Installing CUDA")
32+
withenv("JULIA_PKG_PRECOMPILE_AUTO" => 0,
33+
"JULIA_PKG_DEVDIR" => devdir) do
34+
try
35+
Pkg.develop("CUDA")
36+
TestEnv.activate("CUDA")
37+
catch err
38+
@error "Could not install CUDA" exception=(err,catch_backtrace())
39+
exit(3)
40+
finally
41+
Pkg.activate(cuda)
42+
end
43+
end
44+
45+
println("+++ :julia: Running tests")
46+
Pkg.test(; coverage=true)'
47+
if: |
48+
build.message =~ /\[only tests\]/ ||
49+
build.message =~ /\[only cuda\]/ ||
50+
build.message !~ /\[only/ &&
51+
build.message !~ /\[skip tests\]/ &&
52+
build.message !~ /\[skip cuda\]/
53+
timeout_in_minutes: 60
54+
matrix:
55+
setup:
56+
julia:
57+
- "1.10"
58+
- "1.11"
59+
- "1.12-nightly"
60+
- "nightly"
61+
adjustments:
62+
- with:
63+
julia: "1.12-nightly"
64+
soft_fail: true
65+
- with:
66+
julia: "nightly"
67+
soft_fail: true
68+
69+
- group: "AMDGPU"
70+
key: "amdgpu"
71+
steps:
72+
- label: "Julia {{matrix.julia}}"
73+
plugins:
74+
- JuliaCI/julia#v1:
75+
version: "{{matrix.julia}}"
76+
- JuliaCI/julia-test#v1:
77+
test_args: "--quickfail"
78+
allow_reresolve: false
79+
- JuliaCI/julia-coverage#v1:
80+
dirs:
81+
- src
82+
- ext
83+
agents:
84+
queue: "juliagpu"
85+
rocm: "*"
86+
rocmgpu: "*"
87+
commands: |
88+
julia --project -e '
89+
using Pkg
90+
91+
adapt = pwd()
92+
devdir = mktempdir()
93+
amdgpu = joinpath(devdir, "AMDGPU")
94+
println("--- :julia: Installing TestEnv")
95+
Pkg.activate(; temp=true)
96+
Pkg.add("TestEnv")
97+
using TestEnv
98+
99+
println("--- :julia: Installing AMDGPU")
100+
withenv("JULIA_PKG_PRECOMPILE_AUTO" => 0,
101+
"JULIA_PKG_DEVDIR" => devdir) do
102+
try
103+
Pkg.develop("AMDGPU")
104+
TestEnv.activate("AMDGPU")
105+
catch err
106+
@error "Could not install AMDGPU" exception=(err,catch_backtrace())
107+
exit(3)
108+
finally
109+
Pkg.activate(amdgpu)
110+
end
111+
end
112+
113+
println("+++ :julia: Running tests")
114+
Pkg.test(; coverage=true)'
115+
if: |
116+
build.message =~ /\[only tests\]/ ||
117+
build.message =~ /\[only amdgpu\]/ ||
118+
build.message !~ /\[only/ &&
119+
build.message !~ /\[skip tests\]/ &&
120+
build.message !~ /\[skip amdgpu\]/
121+
timeout_in_minutes: 60
122+
matrix:
123+
setup:
124+
julia:
125+
- "1.10"
126+
- "1.11"
127+
- "1.12-nightly"
128+
- "nightly"
129+
adjustments:
130+
- with:
131+
julia: "1.12-nightly"
132+
soft_fail: true
133+
- with:
134+
julia: "nightly"
135+
soft_fail: true
136+

0 commit comments

Comments
 (0)