6 Commits

Author SHA1 Message Date
b0a485d578 Fixed release upload
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/tag Build is failing
2019-07-11 09:15:13 +02:00
3d4399c33d Updated to PIOv4
Some checks failed
continuous-integration/drone/push Build is failing
2019-07-11 09:12:45 +02:00
a33780a3a7 New paths for PIOv4
Some checks failed
continuous-integration/drone/push Build is failing
2019-07-11 08:56:26 +02:00
d2cd7f3445 Update from python2.7 to python3 2019-07-11 08:50:42 +02:00
b0f6691a7d Removed Jenkinsfile
Some checks failed
continuous-integration/drone/push Build is failing
2019-07-11 08:35:36 +02:00
jct
d510cdd50e Formatting
All checks were successful
continuous-integration/drone/push Build is passing
2019-03-29 22:39:25 +00:00
4 changed files with 11 additions and 51 deletions

View File

@ -3,12 +3,12 @@ name: default
steps:
- name: build
image: python:2
image: python:3
commands:
- pip install platformio
- pio run
- name: upload
image: python:2
image: python:3
commands:
- make otaupload
- name: release
@ -17,7 +17,7 @@ steps:
api_key: a7f3afc9f77e721951e48b4af66d7565700b7a2e
base_url: https://code.jcktrue.dk
files:
- .pioenvs/nodemcu/firmware.bin
- .pioenvs/nodemcu/firmware.elf
- .pio/build/nodemcu/firmware.bin
- .pio/build/nodemcu/firmware.elf
when:
event: tag
event: tag

41
Jenkinsfile vendored
View File

@ -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'
}
}
}
}

View File

@ -2,5 +2,5 @@ build:
pio run
otaupload:
pip install -r .piolibdeps/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
pip install -r .pio/libdeps/nodemcu/Homie/scripts/ota_updater/requirements.txt
python .pio/libdeps/Homie/scripts/ota_updater/ota_updater.py -l mqtt.jcktrue.dk -i 18fe34f2f987 .pio/build/nodemcu/firmware.bin

View File

@ -1,4 +1,5 @@
[![Build Status](https://build.jcktrue.dk/api/badges/jct/deskcontrol/status.svg)](https://build.jcktrue.dk/jct/deskcontrol)
# README #
edit data/homie/config.json
platformio run -t upload
platformio run -t uploadfs
* edit data/homie/config.json
* platformio run -t upload
* platformio run -t uploadfs