cmake standalone build

This commit is contained in:
Daniel Agar
2018-05-03 22:25:36 -04:00
parent eec71d1a10
commit e5952fadaf
173 changed files with 588 additions and 324 deletions
Vendored
+30 -17
View File
@@ -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')
}
}