Skip to content

Commit c40d466

Browse files
committed
enable jenkins build (fix #4)
fix unit test configuration fix test failing for bmp280 add default config (fix #13)
1 parent fb8e13b commit c40d466

21 files changed

+1090
-11
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
build/
22
sdkconfig
3-
sdkconfig.*
3+
sdkconfig.old
4+
sdkconfig.bak
45
.DS_Store
56
main/*.bak
67
core.dat

.project

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
<projects>
66
</projects>
77
<buildSpec>
8+
<buildCommand>
9+
<name>org.python.pydev.PyDevBuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
813
<buildCommand>
914
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
1015
<triggers>clean,full,incremental,</triggers>
@@ -23,5 +28,6 @@
2328
<nature>org.eclipse.cdt.core.ccnature</nature>
2429
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
2530
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
31+
<nature>org.python.pydev.pythonNature</nature>
2632
</natures>
2733
</projectDescription>

.pydevproject

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<?eclipse-pydev version="1.0"?><pydev_project>
3+
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
4+
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python interpreter</pydev_property>
5+
</pydev_project>

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.5.0
2+
3+
- enable Jenkins build and automated unit tests ([#4](https://github.com/openairproject/sensor-esp32/issues/4))
4+
15
# 0.4.3
26

37
- OTA updates ([#2](https://github.com/openairproject/sensor-esp32/issues/2))

Jenkinsfile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
pipeline {
2+
agent any
3+
stages {
4+
stage('build') {
5+
steps {
6+
checkout scm
7+
sh 'make clean'
8+
sh 'make all -j5'
9+
}
10+
}
11+
stage('test') {
12+
steps {
13+
sh 'bin/make_tests.sh'
14+
sh 'sleep 3'
15+
sh 'bin/run_tests.py'
16+
}
17+
}
18+
stage('archive') {
19+
steps {
20+
sh 'cat build/sensor-esp32.bin | openssl dgst -sha256 > build/sensor-esp32.bin.sha256'
21+
}
22+
post {
23+
success {
24+
archiveArtifacts artifacts: 'build/sensor-esp32.*', fingerprint: true
25+
archiveArtifacts artifacts: 'build/partitions_singleapp.bin', fingerprint: true
26+
archiveArtifacts artifacts: 'build/bootloader/bootloader.bin', fingerprint: true
27+
}
28+
}
29+
}
30+
}
31+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22

3-
$IDF_PATH/components/espcoredump/espcoredump.py info_corefile -t b64 -c core.dat build/sensor-esp32.elf
3+
$IDF_PATH/components/espcoredump/espcoredump.py info_corefile -t b64 -c logs/core.dat build/sensor-esp32.elf
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22

3-
$IDF_PATH/components/espcoredump/espcoredump.py dbg_corefile -t b64 -c core.dat build/sensor-esp32.elf
3+
$IDF_PATH/components/espcoredump/espcoredump.py dbg_corefile -t b64 -c logs/core.dat build/sensor-esp32.elf

debug.sh renamed to bin/debug.sh

File renamed without changes.

erase.sh renamed to bin/erase.sh

File renamed without changes.

bin/firmware_installer.py

100644100755
File mode changed.

0 commit comments

Comments
 (0)