ADD: added drone.yml and codecheck.skip
This commit is contained in:
52
.drone.yml
Normal file
52
.drone.yml
Normal 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
4
codecheck.skip
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
-/usr/*
|
||||||
|
-*/tests/test_*
|
||||||
|
-*/libs/*
|
||||||
Reference in New Issue
Block a user