mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 00:03:33 +08:00
Jenkins split GCC 7 posix & nuttx tests
- this groups the builds together properly
This commit is contained in:
Vendored
+24
-3
@@ -175,8 +175,8 @@ pipeline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// GCC7 tests
|
// GCC7 posix
|
||||||
for (def option in ["posix_sitl_default", "nuttx_px4fmu-v5_default"]) {
|
for (def option in ["sitl_default"]) {
|
||||||
def node_name = "${option}"
|
def node_name = "${option}"
|
||||||
|
|
||||||
builds["${node_name} (GCC7)"] = {
|
builds["${node_name} (GCC7)"] = {
|
||||||
@@ -187,7 +187,28 @@ pipeline {
|
|||||||
checkout scm
|
checkout scm
|
||||||
sh "make clean"
|
sh "make clean"
|
||||||
sh "ccache -z"
|
sh "ccache -z"
|
||||||
sh "make ${node_name}"
|
sh "make posix_${node_name}"
|
||||||
|
sh "ccache -s"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// GCC7 nuttx
|
||||||
|
for (def option in ["px4fmu-v5_default"]) {
|
||||||
|
def node_name = "${option}"
|
||||||
|
|
||||||
|
builds["${node_name} (GCC7)"] = {
|
||||||
|
node {
|
||||||
|
stage("Build Test ${node_name} (GCC7)") {
|
||||||
|
docker.image('px4io/px4-dev-base-archlinux:2017-12-08').inside('-e CI=true -e CCACHE_BASEDIR=$WORKSPACE -e CCACHE_DIR=/tmp/ccache -v /tmp/ccache:/tmp/ccache:rw') {
|
||||||
|
stage("${node_name}") {
|
||||||
|
checkout scm
|
||||||
|
sh "make clean"
|
||||||
|
sh "ccache -z"
|
||||||
|
sh "make nuttx_${node_name}"
|
||||||
sh "ccache -s"
|
sh "ccache -s"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user