-
Notifications
You must be signed in to change notification settings - Fork 312
/
.gitlab-ci.yml
47 lines (41 loc) · 1.29 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
default:
retry:
max: 2
when:
- runner_system_failure
- stuck_or_timeout_failure
- api_failure
- stale_schedule
image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/alpine:latest
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
stages:
- unit-test
- unit-test-parallel
- packaging-trigger
- release
include:
- template: Code-Quality.gitlab-ci.yml
# - local: "/.gitlab-ci/jobs/php_unit_tests/runner.yml"
- local: "/.gitlab-ci/jobs/php_unit_tests/sequential/php_unit_tests.yml"
- local: "/.gitlab-ci/jobs/style_check.yml"
- local: "/.gitlab-ci/jobs/security_check.yml"
- local: ".gitlab-ci/jobs/packaging_trigger/package_trigger.yml"
- local: ".gitlab-ci/jobs/release.yml"
- local: ".gitlab-ci/jobs/help_site_notes.yml"
code_quality:
image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/docker:20.10.12-dind
services:
- name: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/docker:20.10.12-dind
alias: docker
command: ["--tls=false", "--host=tcp://0.0.0.0:2375"]
stage: unit-test
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
when: never
- if: $CI_COMMIT_BRANCH
- if: $CI_COMMIT_TAG