4 Commits

Author SHA1 Message Date
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
9b4dd040c1 Simplifying build
All checks were successful
continuous-integration/drone/push Build is passing
2019-03-29 21:49:51 +01:00
53ed60151c Correct API key for pushing releases 2019-03-29 21:48:18 +01:00
3 changed files with 6 additions and 46 deletions

View File

@ -5,7 +5,7 @@ steps:
- name: build - name: build
image: python:2 image: python:2
commands: commands:
- apt-get -y update && apt-get -y install git && pip install platformio - pip install platformio
- pio run - pio run
- name: upload - name: upload
image: python:2 image: python:2
@ -14,7 +14,7 @@ steps:
- name: release - name: release
image: plugins/gitea-release image: plugins/gitea-release
settings: settings:
api_key: ef6a0baa30f8994719e236370290ac9f8bbbdb1d api_key: a7f3afc9f77e721951e48b4af66d7565700b7a2e
base_url: https://code.jcktrue.dk base_url: https://code.jcktrue.dk
files: files:
- .pioenvs/nodemcu/firmware.bin - .pioenvs/nodemcu/firmware.bin

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

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