1
0
MAX7456JSON/.drone.yml
Jens True 7a458e4e19
All checks were successful
continuous-integration/drone/push Build is passing
Path use forward slash
2021-11-01 09:42:07 +00:00

53 lines
1.1 KiB
YAML

kind: pipeline
name: default
steps:
- name: build
image: python:3
commands:
- pip install platformio
- pio run
- pio check --skip-packages > StaticCodeAnalysisReport.txt
- name: docs
image: corentinaltepe/doxygen
commands:
- doxygen
- name: prepare
image: alpine
commands:
- mkdir output
- mv .pio/build/max7456board/firmware.hex output/firmware.hex
- mv docs/html output/docs/
- mv StaticCodeAnalysisReport.txt output/
- name: release-dev
image: appleboy/drone-scp
settings:
host: jcktrue.dk
username:
from_secret: DRONE_USERNAME_SCP
password:
from_secret: DRONE_PASSWORD_SCP
source:
- output/**
strip_components: 1
target:
- /home/jct/apps/http/share.jcktrue.dk/${DRONE_REPO_NAME}/dev
rm: true
- name: release-tag
image: appleboy/drone-scp
settings:
host: jcktrue.dk
username:
from_secret: DRONE_USERNAME_SCP
password:
from_secret: DRONE_PASSWORD_SCP
source:
- output/**
strip_components: 1
target:
- /home/jct/apps/http/share.jcktrue.dk/${DRONE_REPO_NAME}/${DRONE_SEMVER}
rm: true
when:
event:
- tag