2019-06-06 04:30:15 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2019-06-06 10:01:01 +00:00
|
|
|
- name: PlatformIO
|
2019-06-06 04:34:04 +00:00
|
|
|
image: python:2.7
|
2019-06-06 04:30:15 +00:00
|
|
|
commands:
|
2019-06-06 04:32:47 +00:00
|
|
|
- pip install -U platformio
|
2019-06-06 04:30:15 +00:00
|
|
|
- cp include/config.sample.h include/config.h
|
2019-06-06 04:49:33 +00:00
|
|
|
- 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
|
2019-06-06 10:08:57 +00:00
|
|
|
- PLATFORMIO_BUILD_FLAGS="-DCONFIG_USABLE -DDEBUG -DMQTT_ENABLE -DMQTT_REPORT_METRICS" pio run --environment=esp32
|
2019-06-07 04:42:06 +00:00
|
|
|
|
|
|
|
- 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: >
|
2019-06-11 17:44:53 +00:00
|
|
|
Built <code>{{truncate build.commit 7}}</code>: <code>{{build.message}}</code><br>
|
|
|
|
<br>
|
2019-06-07 04:42:06 +00:00
|
|
|
{{#success build.status}}
|
|
|
|
Build {{build.number}} succeeded. Good job!
|
|
|
|
{{else}}
|
2019-06-11 17:44:53 +00:00
|
|
|
<strong>Build {{build.number}} failed.</strong> See {{build.link}} for more information.
|
2019-06-07 04:42:06 +00:00
|
|
|
{{/success}}
|
|
|
|
|
|
|
|
when:
|
|
|
|
status: [success, failure]
|