Skip to content

Commit f2679e7

Browse files
committed
Put the CuArrays testing in GitLab CI config.
1 parent 3b0744d commit f2679e7

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.gitlab-ci.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
variables:
2-
CI_IMAGE_TAG: 'cuda'
2+
CI_IMAGE_TAG: 'plain'
33

44
stages:
55
- test
@@ -36,3 +36,17 @@ coverage:
3636
- master
3737
- staging
3838
- trying
39+
40+
cuarrays:
41+
stage: test
42+
image: "juliagpu/julia:v1.0-cuda"
43+
script:
44+
- mkdir $JULIA_DEPOT_PATH # Pkg3.jl#325
45+
- julia -e 'using Pkg;
46+
Pkg.develop(PackageSpec(path=pwd()));
47+
Pkg.add(PackageSpec(name="CuArrays", rev="master"));
48+
Pkg.test("CuArrays");'
49+
only:
50+
- master
51+
- staging
52+
- trying

test/runtests.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,3 @@ using GPUArrays, Test
1010
@testset "JLArray" begin
1111
GPUArrays.test(JLArray)
1212
end
13-
14-
if haskey(ENV, "GITLAB_CI")
15-
Pkg.add(PackageSpec(name="CuArrays", rev="master"))
16-
@testset "CuArray" begin
17-
Pkg.test("CuArrays")
18-
end
19-
end

0 commit comments

Comments
 (0)