forked from JuliaDiff/SparseDiffTools.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
60 lines (55 loc) · 1.22 KB
/
.gitlab-ci.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
image: "julia:1"
variables:
JULIA_DEPOT_PATH: "$CI_PROJECT_DIR/.julia/"
JULIA_NUM_THREADS: '4'
cache:
paths:
- .julia/
stages:
- build
- test
build:
stage: build
tags:
- 'p6000'
script:
- curl https://julialang-s3.julialang.org/bin/linux/x64/1.3/julia-1.3.0-linux-x86_64.tar.gz -o julia.tar.gz
- unp julia.tar.gz
- export PATH="$(pwd)/julia-1.3.0/bin:$PATH"
- julia -e "using InteractiveUtils;
versioninfo()"
- julia --project -e "using Pkg; Pkg.build(); using SparseDiffTools"
only:
- master
- tags
- external
- pushes
artifacts:
untracked: true
paths:
- .julia/**/*
- julia-1.3.0/**/*
test-GPU:
stage: test
tags:
- 'p6000'
dependencies:
- build
variables:
GROUP: "GPU"
script:
- export PATH="$(pwd)/julia-1.3.0/bin:$PATH"
- julia -e "using InteractiveUtils;
versioninfo()"
- julia --project -e "using Pkg; Pkg.add(\"CuArrays\");
Pkg.test(\"SparseDiffTools\"; coverage=true);"
only:
- master
- tags
- external
- pushes
artifacts:
untracked: true
paths:
- .julia/**/*
- julia-1.3.0/**/*