Skip to content

Commit

Permalink
Jenkins hardware snapdragon build with CCACHE_BASEDIR and dump logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dagar authored Aug 22, 2019
1 parent 331b533 commit 3c0f4f9
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .ci/Jenkinsfile-hardware_linux
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,14 @@ pipeline {
sh 'git fetch --tags'
sh 'CCACHE_BASEDIR=${WORKSPACE} make emlid_navio2_native'
sh 'ccache -s'
// sanity check
sh 'cd build/emlid_navio2_native/ && ./bin/px4 -s ../../posix-configs/rpi/px4_test.config'
}
post {
always {
sh 'make distclean'
}
}
options {
timeout(time: 30, unit: 'MINUTES')
}
Expand Down
9 changes: 8 additions & 1 deletion .ci/Jenkinsfile-hardware_snapdragon
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,19 @@ pipeline {
sh 'make distclean'
sh 'ccache -z'
sh 'git fetch --tags'
sh 'make eagle_default'
sh 'CCACHE_BASEDIR=${WORKSPACE} make eagle_default'
sh 'ccache -s'
// sanity check
sh 'adb devices'
sh 'make eagle_default sanity'
}
post {
always {
sh 'cat boards/atlflight/eagle/scripts/px4.log'
sh 'cat boards/atlflight/eagle/scripts/minidm.log'
sh 'make distclean'
}
}
options {
timeout(time: 30, unit: 'MINUTES')
}
Expand Down
2 changes: 0 additions & 2 deletions boards/atlflight/eagle/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ else()

add_custom_target(sanity
COMMAND ./px4_snapflight_sanitytest.sh -i -t
COMMAND cat px4.log
COMMAND cat minidm.log
DEPENDS px4
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/scripts
COMMENT "uploading px4"
Expand Down
20 changes: 20 additions & 0 deletions posix-configs/rpi/px4_test.config
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,33 @@ mavlink boot_complete

sleep 5

ver all
sleep 1
commander check
sleep 1
dataman status
sleep 1
ekf2 status
sleep 1
logger status
sleep 1
mavlink status
sleep 1
mavlink status streams
sleep 1
param show
sleep 1
param status
sleep 1
pwm info
sleep 1
sensors status
sleep 1
perf
sleep 1
perf latency
sleep 1
uorb top -1
sleep 1

shutdown

0 comments on commit 3c0f4f9

Please sign in to comment.