-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.gitlab-ci.yml
108 lines (90 loc) · 2.19 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
stages:
- basic-platform
- other-platforms
- docs
.base:
tags:
- development
variables:
GIT_SUBMODULE_STRATEGY: "normal"
IMAGE_REGISTRY: "code.usgs.gov:5001/ghsc/gmp/earth-structure/cvms/geomodelgrids"
.runner:
extends: .base
only:
- merge_requests
.builder:
extends: .runner
stage: other-platforms
variables:
ENABLE_GDAL: "yes"
ENABLE_VALGRIND: "no"
script:
- docker/testenv-build.sh
- ci-config/run_tests.sh
.builder-first:
extends: .builder
stage: basic-platform
.doc:
extends: .runner
image: $IMAGE_REGISTRY/testenv-debian-stable
script:
- python3 -m pip install --no-cache-dir -r docs/requirements.txt
- cd docs
- sphinx-build -b html . _build/html
ubuntu-20.04:
extends: .builder-first
image: $IMAGE_REGISTRY/testenv-ubuntu-20.04
ubuntu-22.04:
extends: .builder
image: $IMAGE_REGISTRY/testenv-ubuntu-22.04
ubuntu-23.04:
extends: .builder
image: $IMAGE_REGISTRY/testenv-ubuntu-23.04
ubuntu-23.10:
extends: .builder
image: $IMAGE_REGISTRY/testenv-ubuntu-23.10
deb-stable-valgrind:
extends: .builder
image: $IMAGE_REGISTRY/testenv-debian-stable
variables:
ENABLE_VALGRIND: "yes"
deb-testing-coverage:
extends: .builder
image: $IMAGE_REGISTRY/testenv-debian-testing
variables:
TEST_COVERAGE: "yes"
PYTHON_COVERAGE: "coverage3"
fedora-38:
extends: .builder
image: $IMAGE_REGISTRY/testenv-fedora-38
fedora-39:
extends: .builder
image: $IMAGE_REGISTRY/testenv-fedora-39
rockylinux-8:
extends: .builder
image: $IMAGE_REGISTRY/testenv-rockylinux-8
variables:
ENABLE_GDAL: "no"
rockylinux-9:
extends: .builder
image: $IMAGE_REGISTRY/testenv-rockylinux-9
variables:
ENABLE_GDAL: "no"
documentation:
stage: basic-platform
extends: .doc
pages:
extends: .base
image: $IMAGE_REGISTRY/testenv-debian-stable
script:
- python3 -m pip install --no-cache-dir -r docs/requirements.txt
- cd docs
- sphinx-build -b html . ../public
artifacts:
# GitLab Pages requires the artifacts be in 'public'
paths:
- public
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH && $CI_PROJECT_PATH == 'ghsc/gmp/earth-structure/cvms/geomodelgrids'
stage:
docs