This commit is contained in:
22
.drone.yml
22
.drone.yml
@ -7,12 +7,20 @@ steps:
|
||||
commands:
|
||||
- pip install platformio
|
||||
- pio run
|
||||
- pio check --skip-packages
|
||||
- pio check --skip-packages > StaticCodeAnalysisReport.txt
|
||||
- name: docs
|
||||
image: corentinaltepe/doxygen
|
||||
commands:
|
||||
- doxygen
|
||||
- name: upload
|
||||
- name: prepare
|
||||
image: alpine
|
||||
commands:
|
||||
- mkdir output
|
||||
- cp .pio\build\max7456board\firmware.hex output/firmware.hex
|
||||
- mkdir output/docs/
|
||||
- cp -r docs/html output/docs/
|
||||
- cp StaticCodeAnalysisReport.txt output/
|
||||
- name: release-dev
|
||||
image: appleboy/drone-scp
|
||||
settings:
|
||||
host: jcktrue.dk
|
||||
@ -21,12 +29,12 @@ steps:
|
||||
password:
|
||||
from_secret: DRONE_PASSWORD_SCP
|
||||
source:
|
||||
- .pio\build\max7456board\firmware.hex
|
||||
- docs/**
|
||||
- output/**
|
||||
strip_components: 1
|
||||
target:
|
||||
- /home/jct/apps/http/share.jcktrue.dk/${DRONE_REPO_NAME}/dev
|
||||
rm: true
|
||||
- name: release
|
||||
- name: release-tag
|
||||
image: appleboy/drone-scp
|
||||
settings:
|
||||
host: jcktrue.dk
|
||||
@ -35,8 +43,8 @@ steps:
|
||||
password:
|
||||
from_secret: DRONE_PASSWORD_SCP
|
||||
source:
|
||||
- .pio\build\max7456board\firmware.hex
|
||||
- docs/**
|
||||
- output/**
|
||||
strip_components: 1
|
||||
target:
|
||||
- /home/jct/apps/http/share.jcktrue.dk/${DRONE_REPO_NAME}/${DRONE_SEMVER}
|
||||
rm: true
|
||||
|
Reference in New Issue
Block a user