-
Notifications
You must be signed in to change notification settings - Fork 74
/
.gitlab-ci.yml
66 lines (57 loc) · 2.17 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
#################################################
# Base configuration
#################################################
variables:
GIT_SUBMODULE_STRATEGY: recursive
GIT_SUBMODULE_UPDATE_FLAGS: --jobs 8
CCACHE_SIZE: 2G
# For build and test on Linux
DEFAULT_CMAKE_OPTIONS: '-DCMAKE_BUILD_TYPE=Debug'
# For build on MacOS
DEFAULT_MACOS_CMAKE_OPTIONS: ''
# For packaging, deb and rpm
DEFAULT_PACKAGING_CMAKE_OPTIONS: '-DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/opt/belledonne-communications -DSYSCONF_INSTALL_DIR=/etc -DFLEXISIP_SYSTEMD_INSTALL_DIR=/usr/lib/systemd/system'
# Docker image version
ARCHLINUX_IMAGE_VERSION: 20240916_add_cpp-jwt
ROCKY_8_IMAGE_VERSION: 20240912_cpp-jwt_no_protobuf
ROCKY_9_IMAGE_VERSION: 20240912_cpp-jwt_no_protobuf
DEBIAN_11_IMAGE_VERSION: 20240911_remove_protobuf
DEBIAN_12_IMAGE_VERSION: 20240916_add_coverage
MINIMAL_IMAGE_VERSION: 20240911_remove_protobuf
UBUNTU_22_04_IMAGE_VERSION: 20240911_remove_protobuf
UBUNTU_24_04_IMAGE_VERSION: 20240916_add_cpp-jwt
#https://docs.gitlab.com/ee/ci/yaml/index.html#workflow
workflow:
rules:
# Allow merge request pipelines
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TITLE !~ /^Draft:.*/
# Allow scheduled pipelines
- if: $CI_PIPELINE_SOURCE == "schedule"
before_script:
- |
if [ "$GIT_STRATEGY" != "none" ]; then
git submodule foreach --recursive git fetch --tags --force
fi
#################################################
# Platforms to test
#################################################
include:
- '.gitlab-ci-files/rules.yml'
- '.gitlab-ci-files/scripts.yml'
- '.gitlab-ci-files/job-linux.yml'
- '.gitlab-ci-files/job-linux-archlinux.yml'
- '.gitlab-ci-files/job-linux-rocky8.yml'
- '.gitlab-ci-files/job-linux-rocky9.yml'
- '.gitlab-ci-files/job-linux-debian11.yml'
- '.gitlab-ci-files/job-linux-debian12.yml'
- '.gitlab-ci-files/job-linux-minimal.yml'
- '.gitlab-ci-files/job-linux-ubuntu-22-04.yml'
- '.gitlab-ci-files/job-linux-ubuntu-24-04.yml'
- '.gitlab-ci-files/job-macosx.yml'
stages:
- build 🏗
- test 🧪
- coverage 📑
- package 📦
- check-package 📤
- deploy 🚀