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