2019-09-04 11:00:53 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: python:3
|
|
|
|
commands:
|
|
|
|
- pip install platformio
|
|
|
|
- pio run
|
2021-11-01 09:38:49 +00:00
|
|
|
- pio check --skip-packages > StaticCodeAnalysisReport.txt
|
2021-10-28 14:45:28 +00:00
|
|
|
- name: docs
|
2021-10-28 14:44:20 +00:00
|
|
|
image: corentinaltepe/doxygen
|
|
|
|
commands:
|
|
|
|
- doxygen
|
2021-11-03 08:43:04 +00:00
|
|
|
- name: release-dev
|
2021-11-01 09:38:49 +00:00
|
|
|
image: alpine
|
2021-11-03 08:43:04 +00:00
|
|
|
volumes:
|
|
|
|
- name: output
|
|
|
|
path: /output
|
2021-11-01 09:38:49 +00:00
|
|
|
commands:
|
2021-11-03 08:43:04 +00:00
|
|
|
- mkdir /output/dev/
|
|
|
|
- cp .pio/build/max7456board/firmware.hex /output/dev/firmware.hex
|
|
|
|
- cp -r docs/html /output/dev/
|
|
|
|
- cp StaticCodeAnalysisReport.txt /output/dev/
|
2021-11-01 09:38:49 +00:00
|
|
|
- name: release-tag
|
2021-11-03 08:43:04 +00:00
|
|
|
image: alpine
|
|
|
|
volumes:
|
|
|
|
- name: output
|
|
|
|
path: /output
|
|
|
|
commands:
|
|
|
|
- cp -r /output/dev/ /output/${DRONE_SEMVER}/
|
2021-11-01 09:25:35 +00:00
|
|
|
when:
|
|
|
|
event:
|
2021-11-03 08:43:04 +00:00
|
|
|
- tag
|
|
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: output
|
|
|
|
host:
|
|
|
|
path: /home/jct/apps/http/share.jcktrue.dk/${DRONE_REPO_NAME}/
|