Files
domo-iot/.drone.yml
NADAL Jean-Baptiste 3c9f0c2f56
All checks were successful
continuous-integration/drone/push Build is passing
Add static analysis step
2020-01-22 10:19:58 +01:00

64 lines
1.4 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
- name: build
image: registry.nadal-fr.com/buildroot_dev
commands:
- mkdir -p domo-iot/build
- cd domo-iot/build && cmake .. -DDOMO_BUILD_TEST=ON
- 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