waitui/.drone.yml
Rick Barenthin 150cca40af
All checks were successful
continuous-integration/drone/push Build is passing
test: add memcheck and fix memleaks in test
Reviewed-on: #13
PR #13
2022-07-27 21:28:25 +02:00

83 lines
1.6 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: 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
...