49 lines
754 B
YAML
49 lines
754 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: main
|
|
|
|
steps:
|
|
- name: Tag commit
|
|
image: alpine
|
|
commands:
|
|
- echo This would create a tag
|
|
|
|
trigger:
|
|
branch:
|
|
- main
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: develop
|
|
|
|
steps:
|
|
- name: Tag commit
|
|
image: alpine
|
|
commands:
|
|
- echo This would build the app and run test
|
|
|
|
trigger:
|
|
branch:
|
|
- develop
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: feature
|
|
|
|
steps:
|
|
- name: Run tests
|
|
image: registry.riba-interactive.de/alpine-build:1
|
|
commands:
|
|
- cmake -S. -Bcmake-build-ci -DCMAKE_BUILD_TYPE=Debug -DENABLE_TEST_COVERAGE=on
|
|
- cd cmake-build-ci
|
|
- cmake --build .
|
|
- ctest -T Test -T Coverage
|
|
|
|
trigger:
|
|
branch:
|
|
- feature/*
|
|
|
|
image_pull_secrets:
|
|
- dockerconfig
|
|
... |