Skip to content

Commit 0295c59

Browse files
committed
Update CI.
1 parent 13c0287 commit 0295c59

File tree

1 file changed

+56
-23
lines changed

1 file changed

+56
-23
lines changed

.gitlab-ci.yml

Lines changed: 56 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,64 @@
1-
variables:
2-
CI_IMAGE_TAG: 'plain'
3-
41
include:
5-
- 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v4/common.yml'
6-
- 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v4/test_v1.0.yml'
7-
- 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v4/test_v1.1.yml'
8-
- 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v4/test_v1.2.yml'
9-
- 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v4/test_v1.3.yml'
10-
- 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v4/test_dev.yml'
11-
- 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v4/coverage_v1.2.yml'
12-
13-
test:dev:
14-
allow_failure: true
2+
- 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v6.yml'
153

16-
coverage:
4+
5+
# Julia versions
6+
7+
julia:1.0:
8+
extends:
9+
- .julia:1.0
10+
- .test
11+
12+
julia:1.1:
13+
extends:
14+
- .julia:1.1
15+
- .test
16+
17+
julia:1.2:
18+
extends:
19+
- .julia:1.2
20+
- .test
21+
22+
julia:1.3:
23+
extends:
24+
- .julia:1.3
25+
- .test
26+
27+
julia:nightly:
28+
extends:
29+
- .julia:nightly
30+
- .test
1731
allow_failure: true
18-
only:
19-
- master
32+
33+
34+
# reverse tests
35+
36+
# NOTE: reverse testing is tricky because of Manifests. we instantiate both, give priority
37+
# to this package's Manifest, and manually run tests outside of the test environment.
38+
# that means we have to manually install CuArrays' test dependencies though.
2039

2140
cuarrays:
22-
stage: test
23-
image: "juliagpu/julia:v1.2-cuda"
41+
extends: .julia:1.2
42+
tags:
43+
- nvidia
44+
- sm_75
45+
image: juliagpu/cuda:10.1-cudnn7-cutensor-devel-ubuntu18.04
2446
script:
25-
- mkdir $JULIA_DEPOT_PATH # Pkg3.jl#325
47+
- export CUARRAYS="$HOME/.julia/dev/CuArrays"
2648
- julia -e 'using Pkg;
27-
Pkg.develop(PackageSpec(path=pwd()));
28-
Pkg.build();
29-
Pkg.add(PackageSpec(name="CuArrays", rev="master"));
30-
Pkg.test("CuArrays");'
49+
Pkg.develop("CuArrays");'
50+
- julia --project -e 'using Pkg;
51+
Pkg.instantiate()'
52+
- julia --project=$CUARRAYS -e 'using Pkg;
53+
Pkg.instantiate();
54+
Pkg.add(["FFTW", "ForwardDiff"])'
55+
- JULIA_LOAD_PATH=".:$CUARRAYS::" julia $CUARRAYS/test/runtests.jl
3156
allow_failure: true
57+
58+
59+
# other tasks
60+
61+
coverage:
62+
extends:
63+
- .julia:1.2
64+
- .coverage

0 commit comments

Comments
 (0)