53 lines
1.1 KiB
YAML
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
|