3 changed files with 60 additions and 42 deletions
@ -1,33 +0,0 @@ |
|||||||
language: cpp |
|
||||||
os: linux |
|
||||||
dist: trusty |
|
||||||
|
|
||||||
python: |
|
||||||
- '3.5' |
|
||||||
|
|
||||||
addons: |
|
||||||
apt: |
|
||||||
packages: |
|
||||||
- clang |
|
||||||
- cmake |
|
||||||
- libeigen3-dev |
|
||||||
- python-dev |
|
||||||
- swig3.0 |
|
||||||
|
|
||||||
matrix: |
|
||||||
fast_finish: true |
|
||||||
include: |
|
||||||
- compiler: gcc |
|
||||||
- compiler: clang |
|
||||||
env: CC=clang CXX=clang++ |
|
||||||
- env: RUN_PYTEST=1 |
|
||||||
allow_failures: |
|
||||||
- env: RUN_PYTEST=1 |
|
||||||
|
|
||||||
|
|
||||||
before_install: |
|
||||||
- if [ -n "${RUN_PYTEST}" ]; then |
|
||||||
pip install --user -r ./EKF/tests/pytest/requirements.txt; |
|
||||||
fi |
|
||||||
|
|
||||||
script: ./build.sh |
|
@ -0,0 +1,57 @@ |
|||||||
|
pipeline { |
||||||
|
agent none |
||||||
|
stages { |
||||||
|
stage('build') { |
||||||
|
parallel { |
||||||
|
|
||||||
|
stage('build') { |
||||||
|
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' |
||||||
|
} |
||||||
|
} |
||||||
|
steps { |
||||||
|
sh 'git clean -ff -x -d .' |
||||||
|
sh 'git submodule deinit -f .' |
||||||
|
sh 'git submodule update --init --recursive' |
||||||
|
sh './build.sh' |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
stage('build 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' |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
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' |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
//stage('pytest') { |
||||||
|
// 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' |
||||||
|
// } |
||||||
|
// } |
||||||
|
// steps { |
||||||
|
// sh 'git clean -ff -x -d .' |
||||||
|
// sh 'git submodule deinit -f .' |
||||||
|
// sh 'git submodule update --init --recursive' |
||||||
|
// sh 'pip install --user -r ./EKF/tests/pytest/requirements.txt' |
||||||
|
// sh './build.sh' |
||||||
|
// } |
||||||
|
//} |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue