pitrix/.drone.yml

33 lines
1.0 KiB
YAML

kind: pipeline
name: default
steps:
- name: PlatformIO
image: python:2.7
commands:
- pip install -U platformio
- cp include/config.sample.h include/config.h
- PLATFORMIO_BUILD_FLAGS="-DCONFIG_USABLE -DDEBUG -DMQTT_ENABLE -DMQTT_REPORT_METRICS" pio run
- PLATFORMIO_BUILD_FLAGS="-DCONFIG_USABLE -UDEBUG -UMQTT_ENABLE -UMQTT_REPORT_METRICS" pio run
- name: Notify
image: plugins/matrix
settings:
homeserver: https://matrix.schle.nz
roomid: "!eBdjaXDkatJWoHYdTj:schle.nz"
username:
from_secret: matrix_username
password:
from_secret: matrix_password
template: >
Built <code>{{truncate build.commit 7}}</code>: <code>{{build.message}}</code><br>
<br>
{{#success build.status}}
Build {{build.number}} succeeded. Good job!
{{else}}
<strong>Build {{build.number}} failed.</strong> See {{build.link}} for more information.
{{/success}}
when:
status: [success, failure]