Compare commits
7 Commits
9b4dd040c1
...
v0.2.1
Author | SHA1 | Date | |
---|---|---|---|
795043a639 | |||
b0a485d578 | |||
3d4399c33d | |||
a33780a3a7 | |||
d2cd7f3445 | |||
b0f6691a7d | |||
d510cdd50e |
10
.drone.yml
10
.drone.yml
@ -3,21 +3,23 @@ name: default
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: python:2
|
image: python:3
|
||||||
commands:
|
commands:
|
||||||
- pip install platformio
|
- pip install platformio
|
||||||
- pio run
|
- pio run
|
||||||
- name: upload
|
- name: upload
|
||||||
image: python:2
|
image: python:3
|
||||||
commands:
|
commands:
|
||||||
- make otaupload
|
- make otaupload
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
- name: release
|
- name: release
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
settings:
|
settings:
|
||||||
api_key: a7f3afc9f77e721951e48b4af66d7565700b7a2e
|
api_key: a7f3afc9f77e721951e48b4af66d7565700b7a2e
|
||||||
base_url: https://code.jcktrue.dk
|
base_url: https://code.jcktrue.dk
|
||||||
files:
|
files:
|
||||||
- .pioenvs/nodemcu/firmware.bin
|
- .pio/build/nodemcu/firmware.bin
|
||||||
- .pioenvs/nodemcu/firmware.elf
|
- .pio/build/nodemcu/firmware.elf
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
41
Jenkinsfile
vendored
41
Jenkinsfile
vendored
@ -1,41 +0,0 @@
|
|||||||
pipeline {
|
|
||||||
agent {
|
|
||||||
docker {
|
|
||||||
image 'debian:stretch-slim'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stages {
|
|
||||||
stage('Requirements') {
|
|
||||||
steps {
|
|
||||||
sh 'apt-get -y update && apt-get -y install git python-pip cloc && pip install platformio'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Build') {
|
|
||||||
steps {
|
|
||||||
sh 'pio run'
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
always {
|
|
||||||
archiveArtifacts '.pioenvs/nodemcu/firmware.bin, .pioenvs/nodemcu/firmware.elf'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Coverage') {
|
|
||||||
steps {
|
|
||||||
sh 'cloc --by-file --xml --out=.test/cloc.xml src include'
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
always {
|
|
||||||
recordIssues(tools: [taskScanner(ignoreCase: true, includePattern: 'src/*.*', normalTags: 'TODO')])
|
|
||||||
sloccountPublish encoding: '', pattern: '.test/cloc.xml'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Upload') {
|
|
||||||
steps {
|
|
||||||
sh 'make otaupload'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
4
Makefile
4
Makefile
@ -2,5 +2,5 @@ build:
|
|||||||
pio run
|
pio run
|
||||||
|
|
||||||
otaupload:
|
otaupload:
|
||||||
pip install -r .piolibdeps/Homie/scripts/ota_updater/requirements.txt
|
pip install -r .pio/libdeps/nodemcu/Homie/scripts/ota_updater/requirements.txt
|
||||||
python .piolibdeps/Homie/scripts/ota_updater/ota_updater.py -l mqtt.jcktrue.dk -i 18fe34f2f987 .pioenvs/nodemcu/firmware.bin
|
python .pio/libdeps/nodemcu/Homie/scripts/ota_updater/ota_updater.py -l mqtt.jcktrue.dk -i 18fe34f2f987 .pio/build/nodemcu/firmware.bin
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
|
[![Build Status](https://build.jcktrue.dk/api/badges/jct/deskcontrol/status.svg)](https://build.jcktrue.dk/jct/deskcontrol)
|
||||||
# README #
|
# README #
|
||||||
edit data/homie/config.json
|
* edit data/homie/config.json
|
||||||
platformio run -t upload
|
* platformio run -t upload
|
||||||
platformio run -t uploadfs
|
* platformio run -t uploadfs
|
Reference in New Issue
Block a user