65 lines
1.5 KiB
YAML
65 lines
1.5 KiB
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
clone:
|
|
disable: true
|
|
|
|
steps:
|
|
- name: fetch
|
|
image: registry.nadal-fr.com/buildroot_dev
|
|
commands:
|
|
- git clone ssh://git@git.nadal-fr.com:222/domo/domo-iot.git
|
|
- git clone ssh://git@git.nadal-fr.com:222/domo/qlibc.git
|
|
- git clone ssh://git@git.nadal-fr.com:222/domo/libevent.git
|
|
- git clone ssh://git@git.nadal-fr.com:222/domo/nats.c.git
|
|
- git clone ssh://git@git.nadal-fr.com:222/domo/json-c.git
|
|
- patch -d nats.c -p1 < domo-iot/patches/nats.c.patch
|
|
- patch -d json-c -p1 < domo-iot/patches/json-c.patch
|
|
|
|
- name: build
|
|
image: registry.nadal-fr.com/buildroot_dev
|
|
commands:
|
|
- mkdir -p domo-iot/build
|
|
- cd domo-iot/build && cmake .. -DDOMO_BUILD_TEST=ON -DCMAKE_BUILD_TYPE=Debug
|
|
- make
|
|
|
|
- name: test
|
|
image: registry.nadal-fr.com/buildroot_dev
|
|
commands:
|
|
- cd domo-iot/build
|
|
- make launch_test
|
|
|
|
- name: gcovr
|
|
image: registry.nadal-fr.com/buildroot_dev
|
|
commands:
|
|
- cd domo-iot/build
|
|
- make gcovr
|
|
|
|
- name: static_analysis
|
|
image: registry.nadal-fr.com/buildroot_dev
|
|
commands:
|
|
- cd domo-iot/build
|
|
- make static_analysis
|
|
|
|
- name: send telegram notification
|
|
image: appleboy/drone-telegram
|
|
settings:
|
|
token:
|
|
from_secret: telegram_token
|
|
to:
|
|
from_secret: telegram_id
|
|
message: >
|
|
{{#success build.status}}
|
|
build {{build.number}} succeeded. Good job.
|
|
{{else}}
|
|
build {{build.number}} failed. Fix me please.
|
|
{{/success}}
|
|
when:
|
|
status:
|
|
- failure
|
|
- success
|
|
|
|
image_pull_secrets:
|
|
- dockerconfigjson
|