ADD: added drone.yml and codecheck.skip

This commit is contained in:
Henry Winkel
2024-03-14 18:24:42 +01:00
parent e039b36ed5
commit b2da644fa2
2 changed files with 56 additions and 0 deletions

52
.drone.yml Normal file
View File

@@ -0,0 +1,52 @@
kind: pipeline
type: kubernetes
name: default-build
steps:
- name: submodules
image: alpine/git
commands:
- sed -i 's/ssh\\:..git@/https\\:\\/\\//' .gitmodules
- sed -i 's/\:12000//' .gitmodules
- git submodule update --init --recursive --jobs=4
- name: build
image: kmaster.ti.unibw-hamburg.de:30808/debianbullseye
commands:
# - sed -i 's/ssh\\:..git@/https\\:\\/\\//' .gitmodules
# - sed -i 's/\:12000//' .gitmodules
# - git submodule update --init --recursive --jobs=4
- mkdir -p build && cd build
- CC=clang-11 CXX=clang++-11 cmake -DCMAKE_BUILD_TYPE=DEBUG ..
- make -j
- make test
# - name: EntiyLibrary
# image: kmaster.ti.unibw-hamburg.de:30808/drone-ftewa-codechecker
# pull: always
# settings:
# CODECHECKER_URL: "http://codechecker:8001"
# CODECHECKER_PRODUCT: "EntiyLibrary"
# CODECHECKER_USER:
# from_secret: CODECHECKER_USER_SECRET
# CODECHECKER_PASS:
# from_secret: CODECHECKER_PASS_SECRET
# when:
# event:
# include:
# - push
# - pull_request
---
kind: secret
name: CODECHECKER_USER_SECRET
get:
path: codechecker-client
name: username
---
kind: secret
name: CODECHECKER_PASS_SECRET
get:
path: codechecker-client
name: password

4
codecheck.skip Normal file
View File

@@ -0,0 +1,4 @@
-/usr/*
-*/tests/test_*
-*/libs/*