-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
36 lines (32 loc) · 1.09 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
# SPDX-FileCopyrightText: 2021 Felipe Lema <[email protected]>
# SPDX-FileCopyrightText: 2022 Nicolás Alvarez <[email protected]>
# SPDX-License-Identifier: CC0-1.0
variables:
DEBIAN_FRONTEND: "noninteractive"
clang_format:
stage: build
image: debian:testing
before_script:
- apt-get update
- apt-get install --yes --no-install-recommends wget ca-certificates git clang-format-11
- update-ca-certificates
script:
- ./.gitlab-ci.script
rules:
- when: manual
allow_failure: true
workflow:
rules:
# Prevent branch pipelines if an MR is open on the branch.
- if: $CI_COMMIT_BRANCH && $CI_PIPELINE_SOURCE == "push" && $CI_OPEN_MERGE_REQUESTS
when: never
# Allow merge request pipelines.
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
# Build tags and branches too
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH =~ /^krita\//
include:
- local: /build-tools/ci-scripts/cppcheck.yml
- local: /build-tools/ci-scripts/linux.yml
- local: /build-tools/ci-scripts/windows.yml