forked from CliMA/Oceananigans.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
30 lines (26 loc) · 892 Bytes
/
.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
variables:
CI_IMAGE_TAG: 'cuda'
JULIA_NUM_THREADS: '4'
# See: https://github.com/JuliaGPU/gitlab-ci
include:
- 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v5/test.yml'
- 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v5/coverage.yml'
test:v1.2:
extends: .test:v1.2
test:dev:
extends: .test:dev
allow_failure: true
coverage:
stage: post
extends: .root
variables:
CI_VERSION_TAG: 'v1.2'
script:
- julia --project -e 'using Pkg;
Pkg.add("Coverage")'
- julia --project -e 'using Coverage;
cl, tl = get_summary(process_folder());
println("(", cl/tl*100, "%) covered");
Codecov.submit_local(process_folder(), ".")'
coverage: '/\(\d+.\d+\%\) covered/'
allow_failure: true