-
Notifications
You must be signed in to change notification settings - Fork 15
/
.gitlab-ci.yml
107 lines (90 loc) · 2.26 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
image: docker:latest
stages:
- manual-trigger
- basic-platform
- other-platforms
- auto-documentation
.pull-request:
only:
- external_pull_requests
.builder:
tags:
- docker
extends: .pull-request
stage: other-platforms
variables:
GIT_SUBMODULE_STRATEGY: "normal"
IMAGE_REGISTRY: "registry.gitlab.com/cig-pylith/pythia"
TEST_COVERAGE: "no"
script:
- docker build -t pythia-testenv --build-arg BASE_IMAGE=$IMAGE_REGISTRY/$BASE_IMAGE --build-arg TEST_COVERAGE=$TEST_COVERAGE --build-arg PYTHON_COVERAGE=$PYTHON_COVERAGE --target build -f docker/pythia-testenv .
- docker run -e CI_JOB_ID -e GITLAB_CI -e CI_BUILD_REF_NAME -e CI_BUILD_ID -e CI_BUILD_REPO -e CI_BUILD_REF -e CODECOV_TOKEN pythia-testenv ci-config/run_test_coverage.sh
.builder-first:
extends: .builder
stage: basic-platform
.doc:
when: manual
tags:
- docker
variables:
BASE_IMAGE: "testenv-debian-stable"
script:
- echo "-TODO- Generate documentation."
trigger-job:
stage: manual-trigger
tags:
- docker
when: manual
extends: .pull-request
allow_failure: false
script:
- echo "Pipeline triggered manually"
debian-stable-job:
extends: .builder-first
variables:
BASE_IMAGE: "testenv-debian-stable"
PYTHON_COVERAGE: "python3-coverage"
debian-testing-job:
extends: .builder
variables:
BASE_IMAGE: "testenv-debian-testing"
PYTHON_COVERAGE: "python3-coverage"
ubuntu-18.04-job:
extends: .builder
variables:
BASE_IMAGE: "testenv-ubuntu-18.04"
PYTHON_COVERAGE: "python3-coverage"
ubuntu-20.04-job:
extends: .builder
variables:
BASE_IMAGE: "testenv-ubuntu-20.04"
PYTHON_COVERAGE: "python3-coverage"
ubuntu-21.04-job:
extends: .builder
variables:
BASE_IMAGE: "testenv-ubuntu-21.04"
PYTHON_COVERAGE: "python3-coverage"
fedora-33-job:
extends: .builder
variables:
BASE_IMAGE: "testenv-fedora-33"
PYTHON_COVERAGE: "coverage3"
fedora-34-job:
extends: .builder
variables:
BASE_IMAGE: "testenv-fedora-34"
PYTHON_COVERAGE: "coverage3"
centos-8-job:
extends: .builder
variables:
BASE_IMAGE: "testenv-centos-8"
auto-doc-job:
stage: auto-documentation
extends:
- .pull-request
- .doc
manual-doc-job:
stage: basic-platform
extends: .doc
only:
- main