mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 03:33:35 +08:00
cmake standalone build
This commit is contained in:
Vendored
+30
-17
@@ -5,53 +5,66 @@ pipeline {
|
||||
parallel {
|
||||
|
||||
stage('build') {
|
||||
environment {
|
||||
CCACHE_BASEDIR = "${env.WORKSPACE}"
|
||||
}
|
||||
agent {
|
||||
docker {
|
||||
image 'px4io/px4-dev-base:2017-12-30'
|
||||
args '-e CI=true -e CCACHE_BASEDIR=$WORKSPACE -e CCACHE_DIR=/tmp/ccache -v /tmp/ccache:/tmp/ccache:rw'
|
||||
args '-v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'git clean -ff -x -d .'
|
||||
sh 'git submodule deinit -f .'
|
||||
sh 'git submodule update --init --recursive'
|
||||
sh './build.sh'
|
||||
sh 'make distclean'
|
||||
sh 'make'
|
||||
sh 'make distclean'
|
||||
}
|
||||
}
|
||||
|
||||
stage('build clang') {
|
||||
environment {
|
||||
CCACHE_BASEDIR = "${env.WORKSPACE}"
|
||||
CC = 'clang'
|
||||
CXX = 'clang++'
|
||||
}
|
||||
agent {
|
||||
docker {
|
||||
image 'px4io/px4-dev-clang:2017-12-30'
|
||||
args '-e CI=true -e CCACHE_BASEDIR=$WORKSPACE -e CCACHE_DIR=/tmp/ccache -v /tmp/ccache:/tmp/ccache:rw'
|
||||
args '-v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
||||
}
|
||||
|
||||
}
|
||||
steps {
|
||||
sh 'git clean -ff -x -d .'
|
||||
sh 'git submodule deinit -f .'
|
||||
sh 'git submodule update --init --recursive'
|
||||
sh 'CC=clang CXX=clang++ ./build.sh'
|
||||
sh 'make distclean'
|
||||
sh 'make'
|
||||
sh 'make distclean'
|
||||
}
|
||||
}
|
||||
|
||||
stage('pytest') {
|
||||
agent {
|
||||
docker {
|
||||
image 'px4io/px4-dev-ecl'
|
||||
args '-e CI=true -e CCACHE_BASEDIR=$WORKSPACE -e CCACHE_DIR=/tmp/ccache -v /tmp/ccache:/tmp/ccache:rw'
|
||||
image 'px4io/px4-dev-ecl:2018-04-22'
|
||||
args '-v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'git clean -ff -x -d .'
|
||||
sh 'git submodule deinit -f .'
|
||||
sh 'git submodule update --init --recursive'
|
||||
sh 'make distclean'
|
||||
sh 'make'
|
||||
//sh 'RUN_PYTEST=1 ./build.sh'
|
||||
sh './build.sh'
|
||||
sh 'make distclean'
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
environment {
|
||||
CCACHE_DIR = '/tmp/ccache'
|
||||
CI = true
|
||||
}
|
||||
options {
|
||||
buildDiscarder(logRotator(numToKeepStr: '10', artifactDaysToKeepStr: '30'))
|
||||
timeout(time: 60, unit: 'MINUTES')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user