-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
70 lines (66 loc) · 2.43 KB
/
.gitlab-ci.yml
File metadata and controls
70 lines (66 loc) · 2.43 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
#################################################################
# #
# Copyright (c) 2021-2025 YottaDB LLC and/or its subsidiaries. #
# All rights reserved. #
# #
# This source code contains the intellectual property #
# of its copyright holder(s), and is made available #
# under a license. If you do not know the terms of #
# the license, please stop and do not read further. #
# #
#################################################################
stages:
- build
commit-verify:
image: ubuntu:24.04
stage: build
before_script:
- apt-get update -qq && apt-get install -y -qq git wget gnupg
script:
# Copy commit gpg key verify script to build directory and execute
- wget https://gitlab.com/YottaDB/DB/YDB/-/raw/master/ci/commit_verify.sh
- chmod +x commit_verify.sh
- ./commit_verify.sh ./needs_copyright.sh https://gitlab.com/YottaDB/Util/YDBEncrypt
check-for-updates:
image: ubuntu:24.04
stage: build
before_script:
- apt-get update -qq && apt-get install -y -qq git wget gnupg
script:
- ./ci/checkforupdates.sh
clang-tidy:
image: yottadb/yottadb-base:latest-master
stage: build
interruptible: true
artifacts:
paths:
- warnings/
- ci/
when: always
expire_in: 1 month
script:
- apt update -q && apt -q install -y --no-install-recommends >/dev/null
gcc
clang-14
clang-tidy-14
file
make
git
wget
ca-certificates
libgcrypt-dev
libgpgme11-dev
libssl-dev
libconfig-dev
bear
- wget https://gitlab.com/YottaDB/DB/YDB/-/raw/master/ci/sort_warnings.sh -P ci/
- wget https://gitlab.com/YottaDB/DB/YDB/-/raw/master/ci/create_tidy_warnings.sh -P ci/
- chmod +x ci/create_tidy_warnings.sh ci/sort_warnings.sh
# This sed command is for removing path in find command that defined in ci/create_tidy_warnings.sh
# that we previously downloaded from YDB repository
# So we changed from sr_linux, sr_unix, sr_port and sr_$(uname -m) to current directory (.)
- sed -i s'/sr_linux\/ sr_unix\/ sr_port\/ sr_$(uname -m)/./g' ci/create_tidy_warnings.sh
# This sed command is for adding line "-clang-diagnostic-unused-command-line-argument," after line
# "-bugprone-branch-clone," in ci/create_tidy_warnings.sh
- sed -i '/-bugprone-branch-clone,/a \ \ \ \ -clang-diagnostic-unused-command-line-argument,' ci/create_tidy_warnings.sh
- ci/build.sh