-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitlab-ci.yml
45 lines (42 loc) · 1.12 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
stages:
- test
- documentation
variables:
SCHEDULER_PARAMETERS: "-N 1 -n 1 -c 32 -t 00:15:00 -A pc2-mitarbeiter -p dgx --qos=devel --gres=gpu:a100:2"
JULIA_DEPOT_PATH: "/scratch/pc2-mitarbeiter/bauerc/.julia-ci"
JULIA_NUM_THREADS: "10"
JULIA_EXCLUSIVE: "1"
JULIA_1_9: "lang/JuliaHPC/1.9.2-foss-2022a-CUDA-11.7.0"
MKL_DYNAMIC: "false"
MKL_NUM_THREADS: "1"
default:
tags:
- bauerc-noctua2
# Generates code coverage
julia/1.9:
stage: test
rules:
- changes:
- "README.md"
- when: on_success
script:
- /bin/bash -l
- module load $JULIA_1_9
- julia --color=yes --project=. -e 'using Pkg; Pkg.build(verbose=true); Pkg.test(; coverage = true);'
- julia --color=yes --project=test/coverage -e 'import Pkg; Pkg.instantiate()'
- julia --color=yes --project=test/coverage test/coverage/coverage.jl
allow_failure: false
# Documentation
build-and-deploy-docs:
stage: documentation
only:
- main
- pushes
- tags
- external_pull_requests
script:
- /bin/bash -l
- module load $JULIA_1_9
- cd docs
- julia --color=yes build_docs.jl
allow_failure: false