-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
88 lines (80 loc) · 1.97 KB
/
.gitlab-ci.yml
File metadata and controls
88 lines (80 loc) · 1.97 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
---
# SPDX-FileCopyrightText: NONE
# SPDX-License-Identifier: CC0-1.0
variables:
GIT_DEPTH: 1
FF_USE_FASTZIP: true
CACHE_COMPRESSION_LEVEL: "fastest"
ARTIFACT_COMPRESSION_LEVEL: "fastest"
workflow:
auto_cancel:
on_new_commit: "interruptible"
default:
image: "eclipse-temurin:17-jdk-alpine"
interruptible: true
cache:
key: "cache-build"
paths: [cache/build]
when: "always"
before_script: |
# Install dependencies
apk add bash zip~=3.0 wget || exit "${?}"
stages:
- build
- test
# Temporarily disabled
.build-oss-job:
stage: build
timeout: "5 minutes"
rules:
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
changes:
- "LICENSES/*"
- "docs/*.rst"
- "includes/*"
- "tools/*.jar"
- "zip-content/**"
- "CHANGELOG.rst"
- "LICENSE*.rst"
- "build.sh"
- "conf-*.sh"
when: always
cache: []
script: "BUILD_TYPE='oss' './build.sh'"
build-job:
stage: build
timeout: "5 minutes"
rules:
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
changes:
- "LICENSES/*"
- "docs/*.rst"
- "includes/*"
- "tools/*.jar"
- "zip-content/**"
- "CHANGELOG.rst"
- "LICENSE*.rst"
- "build.sh"
- "conf-*.sh"
when: always
- if: $CI_PIPELINE_SOURCE == "schedule"
when: always
- if: $CI_PIPELINE_SOURCE == "web" # Started manually on the GitLab website
when: always
script: "BUILD_TYPE='full' './build.sh'"
artifacts:
paths:
- "output/*.zip*"
expire_in: "15 minutes"
# Cache expiration: 14 days
ping-cache:
stage: build
interruptible: false
timeout: "5 minutes"
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: always
before_script: []
script: "test ! -d './cache/build' || date -u -- '+%s' 1> './cache/build/last-ping.dat'"
# Temporarily disabled
#include: ".gitlab/security-scans.yml"