waitui/.drone.yml
Rick Barenthin d13bad4660
All checks were successful
continuous-integration/drone/push Build is passing
test: add memory check, reporting and fix some memleaks in tests
Reviewed-on: #14
PR #14
2022-07-30 23:10:31 +02:00

89 lines
1.8 KiB
YAML

---
kind: pipeline
type: docker
name: main
steps:
- name: fetch tags
image: alpine/git
commands:
- git fetch --tags
- name: update version and changelog
image: registry.riba-interactive.de/conventi:0.1.0
- name: commit changelog updates
image: alpine/git
commands:
- git add .
- git commit -m "[CI SKIP] version and changelog update"
- git push origin $DRONE_TARGET_BRANCH
- name: tag commit
image: registry.riba-interactive.de/conventi:0.1.0
commands:
- export version=$(conventi.sh get_version)
- git tag -am "Tagging new version $version" "$version"
- git push origin "$version"
trigger:
branch:
- main
event:
- push
image_pull_secrets:
- dockerconfig
---
kind: pipeline
type: docker
name: tag
steps:
- name: Build release
image: registry.riba-interactive.de/alpine-build:4
commands:
- cmake -S. -Bcmake-build-ci -DCMAKE_BUILD_TYPE=Release
- cd cmake-build-ci
- cmake --build .
- echo "Done"
trigger:
event:
- tag
image_pull_secrets:
- dockerconfig
---
kind: pipeline
type: docker
name: Build and Test
steps:
- name: Build and run tests
image: registry.riba-interactive.de/alpine-build:4
commands:
- cmake -S. -Bcmake-build-ci -DCMAKE_BUILD_TYPE=Debug -DENABLE_TEST_COVERAGE=on
- cd cmake-build-ci
- cmake --build .
- make coverage
- name: Generate memory report
image: registry.riba-interactive.de/reportly:latest
settings:
input_path: cmake-build-ci
output_path: .reports
debug: true
- name: Report test and coverage
image: alpine
commands:
- echo "Do some curl or so"
when:
event:
- pull_request
trigger:
branch:
- develop
- feature/*
image_pull_secrets:
- dockerconfig
...