better yaml
continuous-integration/drone/tag Build is passing Details
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Arwed Mett 2019-03-17 17:40:55 +01:00
parent b23d12a8f2
commit 6e1a1af712
Signed by: Pfeifenjoy
GPG Key ID: 86943827297DA9FC
4 changed files with 33 additions and 32 deletions

View File

@ -4,42 +4,42 @@ name: default
steps:
- name: build
image: pfeifenjoy/logging.h
commands:
- cmake -DCMAKE_BUILD_TYPE=Debug -H. -Bbuild
- cmake --build build
image: pfeifenjoy/logging.h
commands:
- cmake -DCMAKE_BUILD_TYPE=Debug -H. -Bbuild
- cmake --build build
- name: test
image: pfeifenjoy/logging.h
commands:
- ctest --verbose build
image: pfeifenjoy/logging.h
commands:
- ctest --verbose build
- name: memcheck
image: pfeifenjoy/logging.h
commands:
- valgrind --leak-check=yes --error-exitcode=1 ./build/example
image: pfeifenjoy/logging.h
commands:
- valgrind --leak-check=yes --error-exitcode=1 ./build/example
- name: linux
image: pfeifenjoy/logging.h
commands:
- rm -rf build
- cmake -DCMAKE_BUILD_TYPE=Release -H. -Bbuild
- cmake --build build --target package
image: pfeifenjoy/logging.h
commands:
- rm -rf build
- cmake -DCMAKE_BUILD_TYPE=Release -H. -Bbuild
- cmake --build build --target package
- name: gitea_release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://gitea.metthub.de
files:
- build/logging.h-*
checksum:
- md5
- sha1
- sha256
- sha512
- adler32
- crc32
when:
event: tag
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://gitea.metthub.de
files:
- build/logging.h-*
checksum:
- md5
- sha1
- sha256
- sha512
- adler32
- crc32
when:
event: tag

View File

@ -3,7 +3,7 @@ project(logging.h LANGUAGES C)
message(STATUS ${CMAKE_SYSTEM_NAME})
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/cmake)
include(git)
include(require-git)
#Targets
add_library(Logging src/logging.c)

View File

@ -2,6 +2,7 @@ FROM debian
WORKDIR /
RUN apt update
RUN apt -y install gcc
RUN apt -y install git
RUN apt -y install cmake
RUN apt -y install valgrind
RUN mkdir /working-dir