-
Notifications
You must be signed in to change notification settings - Fork 172
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
97 lines (89 loc) · 2.68 KB
/
.gitlab-ci.yml
File metadata and controls
97 lines (89 loc) · 2.68 KB
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
stages:
- build
- tests
- deploy
- ci-build
variables:
GIT_SUBMODULE_STRATEGY: recursive
# Only clone libdatadog submodule by default
GIT_SUBMODULE_PATHS: libdatadog
RELIABILITY_ENV_BRANCH:
value: "master"
description: "Run a specific datadog-reliability-env branch downstream"
SYSTEM_TESTS_LIBRARY: php
include:
- project: DataDog/apm-reliability/libdatadog-build
ref: 5826819695d93286569e70ed087ae6bf906ce2c3
file: templates/ci_authenticated_job.yml
- local: .gitlab/ci-images.yml
generate-templates:
stage: build
image: registry.ddbuild.io/images/mirror/php:8.2-cli
tags: [ "arch:amd64" ]
needs: []
script:
- php ./.gitlab/generate-package.php | tee .gitlab/package-gen.yml
- php ./.gitlab/generate-tracer.php | tee .gitlab/tracer-gen.yml
- php ./.gitlab/generate-appsec.php | tee .gitlab/appsec-gen.yml
- php ./.gitlab/generate-profiler.php | tee .gitlab/profiler-gen.yml
- php ./.gitlab/generate-shared.php | tee .gitlab/shared-gen.yml
variables:
GIT_SUBMODULE_STRATEGY: none
artifacts:
paths:
- .gitlab/*-gen.yml
tracer-trigger:
stage: tests
needs: [ "generate-templates" ]
trigger:
include:
- artifact: .gitlab/tracer-gen.yml
job: "generate-templates"
strategy: depend
variables:
PARENT_PIPELINE_ID: $CI_PIPELINE_ID
appsec-trigger:
stage: tests
needs: [ "generate-templates" ]
trigger:
include:
- artifact: .gitlab/appsec-gen.yml
job: "generate-templates"
strategy: depend
variables:
PARENT_PIPELINE_ID: $CI_PIPELINE_ID
GIT_SUBMODULE_PATHS: libdatadog appsec/third_party/cpp-base64 appsec/third_party/libddwaf appsec/third_party/libddwaf-rust appsec/third_party/msgpack-c
profiler-trigger:
stage: tests
needs: [ "generate-templates" ]
trigger:
include:
- artifact: .gitlab/profiler-gen.yml
job: "generate-templates"
strategy: depend
variables:
PARENT_PIPELINE_ID: $CI_PIPELINE_ID
shared-trigger:
stage: tests
needs: [ "generate-templates" ]
trigger:
include:
- artifact: .gitlab/shared-gen.yml
job: "generate-templates"
strategy: depend
variables:
PARENT_PIPELINE_ID: $CI_PIPELINE_ID
package-trigger:
stage: build
needs: [ "generate-templates" ]
trigger:
include:
- artifact: .gitlab/package-gen.yml
job: "generate-templates"
- local: .gitlab/benchmarks.yml
strategy: depend
variables:
PARENT_PIPELINE_ID: $CI_PIPELINE_ID
GIT_SUBMODULE_PATHS: libdatadog appsec/third_party/cpp-base64 appsec/third_party/libddwaf appsec/third_party/libddwaf-rust appsec/third_party/msgpack-c
NIGHTLY_BUILD: $NIGHTLY_BUILD
RELIABILITY_ENV_BRANCH: $RELIABILITY_ENV_BRANCH