Skip to content

Commit 7aad5c3

Browse files
bors[bot]maleadt
andcommitted
Merge #181
181: Put the CuArrays testing in GitLab CI config. r=maleadt a=maleadt Trial balloon. If this works, maybe we should test Flux and some others in CuArrays. bors try Co-authored-by: Tim Besard <tim.besard@gmail.com>
2 parents 3b0744d + 97067aa commit 7aad5c3

File tree

4 files changed

+18
-21
lines changed

4 files changed

+18
-21
lines changed

.gitlab-ci.yml

+17-1
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,19 @@ 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.build();
48+
Pkg.add(PackageSpec(name="CuArrays", rev="master"));
49+
Pkg.test("CuArrays");'
50+
allow_failure: true
51+
only:
52+
- master
53+
- staging
54+
- trying

Project.toml

-6
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,3 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1111
Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
1212
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
1313
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
14-
15-
[extras]
16-
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
17-
18-
[targets]
19-
test = ["Pkg"]

bors.toml

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ status = [
44
"continuous-integration/travis-ci/push"
55
]
66
delete_merged_branches = true
7+
timeout-sec = 7200

test/runtests.jl

-14
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
1-
# development often happens in lockstep with other packages,
2-
# so check-out the master branch of those packages.
3-
using Pkg
4-
if haskey(ENV, "TRAVIS") || haskey(ENV, "APPVEYOR") || haskey(ENV, "GITLAB_CI")
5-
Pkg.add(PackageSpec(name="Adapt", rev="master"))
6-
end
7-
81
using GPUArrays, Test
92

103
@testset "JLArray" begin
114
GPUArrays.test(JLArray)
125
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)