1 Star 0 Fork 0

eric / yarp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.yml 32.78 KB
一键复制 编辑 原始数据 按行查看 历史
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992
branches:
except:
- /^.*appveyor.*$/
- /^devel$/
notifications:
irc:
channels:
- "chat.freenode.net#yarpers"
template:
- "%{repository}/%{branch} (%{commit} - %{author}): %{build_url}: %{message}"
use_notice: true
skip_join: true
slack:
secure: PFCRF5GqjLKAghKHz+Dl2yOlRM5Ud8uI8s4AvshsHVmW4VNDhJfLzi3cGqWGjptZ2CBSMSrd5noANQCfeKObqwpeW3na8vrEO/l0RrgqV0idpiDOMotSRbCTB6I7DNKL31ZsQ4qm7eOroWlauNSiC+CBLmwShE9+N2zWC25JXSo=
stages:
- check
- cmake
- test
- test-long
env:
global:
- TRAVIS_CMAKE_GENERATOR="Unix Makefiles"
- TRAVIS_BUILD_TYPE=Release
# Force ccache to build the original cpp file instead of the pre-processed file
- CCACHE_CPP2=yes
# CMake/CTest variables
- CTEST_OUTPUT_ON_FAILURE=1
- CLICOLOR_FORCE=1
# Port 10010 is used by docker-containerd on travis-bionic
# See also https://travis-ci.community/t/port-10010-is-used-by-docker-containerd/3865
- YARP_PORT_RANGE=20000
git:
depth: 100
quiet: true
.linux_system_info_definition: &linux_system_info_cmd |-
# Print some more system information after installing all build tools
uname -a
lsb_release -a
cat /etc/apt/sources.list
ls -la --color=always /etc/apt/sources.list.d
which cmake
cmake --version
which $CC
$CC --version
which $CXX
$CXX --version
which ccache
ccache --version
ccache -s
ls -la --color=always /usr/lib/ccache
ls -la --color=always ${HOME}/lib/ccache || true
which swig3.0
swig3.0 -version
which javac
javac -version
sudo netstat -tulpn
env
.osx_system_info_definition: &osx_system_info_cmd |-
# Print some more system information after installing all build tools
uname -a
system_profiler SPSoftwareDataType
which cmake
cmake --version
which $CC
$CC --version
which $CXX
$CXX --version
which ccache
ccache --version
ccache -s
which javac
javac -version
env
.stop_docker_cmd_definition: &stop_docker_cmd |-
# Stop docker service
sudo service docker stop
.prepare_build_dir_cmd_definition: &prepare_build_dir_cmd |-
# Prepare build directory
mkdir -p build
.export_cmake_options_base_cmd_definition: &export_cmake_options_base_cmd |-
# Prepare cmake options
export YARP_INSTALL_PREFIX="${PWD}/install"
export YARP_CMAKE_OPTIONS="${CMAKE_OPTIONS} -C${PWD}/.ci/initial-cache.appveyor.cmake -DCMAKE_INSTALL_PREFIX=${YARP_INSTALL_PREFIX}"
.export_cmake_options_linux_cmd_definition: &export_cmake_options_linux_cmd |-
# export_cmake_options_linux_cmd
export YARP_CMAKE_OPTIONS="${YARP_CMAKE_OPTIONS} -DENABLE_yarpcar_h264:BOOL=ON"
export YARP_CMAKE_OPTIONS="${YARP_CMAKE_OPTIONS} -DENABLE_yarpmod_usbCamera:BOOL=ON -DENABLE_yarpmod_usbCameraRaw:BOOL=ON"
export YARP_CMAKE_OPTIONS="${YARP_CMAKE_OPTIONS} -DENABLE_yarpmod_ffmpeg_grabber:BOOL=ON -DENABLE_yarpmod_ffmpeg_writer:BOOL=ON"
#- export YARP_CMAKE_OPTIONS="${YARP_CMAKE_OPTIONS} -DENABLE_yarpmod_portaudio:BOOL=ON -DENABLE_yarpmod_portaudioPlayer:BOOL=ON -DENABLE_yarpmod_portaudioRecorder:BOOL=ON"
export YARP_CMAKE_OPTIONS="${YARP_CMAKE_OPTIONS} -DENABLE_yarpmod_opencv_grabber:BOOL=ON"
.export_cmake_options_linux_gcc_cmd_definition: &export_cmake_options_linux_gcc_cmd |-
# export_cmake_options_linux_gcc_cmd
# Build rplidar2 on linux
# FIXME gcc only, see https://github.com/robotology/yarp/issues/1984
export YARP_CMAKE_OPTIONS="${YARP_CMAKE_OPTIONS} -DENABLE_yarpmod_rpLidar2:BOOL=ON"
.export_cmake_options_linux_clang_cmd_definition: &export_cmake_options_linux_clang_cmd |-
# export_cmake_options_linux_clang_cmd
# Nothing to do
.export_cmake_options_osx_cmd_definition: &export_cmake_options_osx_cmd |-
# export_cmake_options_osx_cmd
export YARP_CMAKE_OPTIONS="${YARP_CMAKE_OPTIONS} -DENABLE_yarpmod_opencv_grabber:BOOL=OFF"
# Avoid building Qt5 guis twice on macOS.
export YARP_CMAKE_OPTIONS="${YARP_CMAKE_OPTIONS} -DYARP_DISABLE_OSX_BUNDLES:BOOL=ON"
.export_cmake_options_skip_ace_cmd_definition: &export_cmake_options_skip_ace_cmd |-
# export_cmake_options_skip_ace_cmd_definition
export YARP_CMAKE_OPTIONS="${YARP_CMAKE_OPTIONS} -DSKIP_ACE:BOOL=ON"
.export_cmake_options_skip_math_cmd_definition: &export_cmake_options_skip_math_cmd |-
# export_cmake_options_skip_math_cmd
export YARP_CMAKE_OPTIONS="${YARP_CMAKE_OPTIONS} -DYARP_COMPILE_libYARP_math:BOOL=OFF"
.export_cmake_options_static_cmd_definition: &export_cmake_options_static_cmd |-
# export_cmake_options_static_cmd
export YARP_CMAKE_OPTIONS="${YARP_CMAKE_OPTIONS} -DBUILD_SHARED_LIBS:BOOL=OFF"
.export_cmake_options_clean_api_cmd_definition: &export_cmake_options_clean_api_cmd |-
# export_cmake_options_clean_api_cmd
export YARP_CMAKE_OPTIONS="${YARP_CMAKE_OPTIONS} -DYARP_CLEAN_API:BOOL=ON -DYARP_COMPILE_TESTS:BOOL=OFF"
.export_cmake_options_no_deprecated_cmd_definition: &export_cmake_options_no_deprecated_cmd |-
# export_cmake_options_no_deprecated_cmd
export YARP_CMAKE_OPTIONS="${YARP_CMAKE_OPTIONS} -DYARP_NO_DEPRECATED:BOOL=ON"
.export_cmake_options_no_executables_cmd_definition: &export_cmake_options_no_executables_cmd |-
# export_cmake_options_no_executables_cmd
export YARP_CMAKE_OPTIONS="${YARP_CMAKE_OPTIONS} -DYARP_COMPILE_EXECUTABLES:BOOL=OFF -DYARP_COMPILE_TESTS:BOOL=OFF"
.export_cmake_options_valgrind_cmd_definition: &export_cmake_options_valgrind_cmd |-
# export_cmake_options_valgrind
export YARP_CMAKE_OPTIONS="${YARP_CMAKE_OPTIONS} -DYARP_VALGRIND_TESTS:BOOL=ON"
## These devices link to glib/gobject causing some memory leak on valgrind, therefore they are not enabled on valgrind builds
export YARP_CMAKE_OPTIONS="${YARP_CMAKE_OPTIONS} -DENABLE_yarpcar_h264:BOOL=OFF"
export YARP_CMAKE_OPTIONS="${YARP_CMAKE_OPTIONS} -DENABLE_yarpmod_usbCamera:BOOL=OFF -DENABLE_yarpmod_usbCameraRaw:BOOL=OFF"
export YARP_CMAKE_OPTIONS="${YARP_CMAKE_OPTIONS} -DENABLE_yarpmod_ffmpeg_grabber:BOOL=OFF -DENABLE_yarpmod_ffmpeg_writer:BOOL=OFF"
export YARP_CMAKE_OPTIONS="${YARP_CMAKE_OPTIONS} -DENABLE_yarpmod_portaudio:BOOL=OFF -DENABLE_yarpmod_portaudioPlayer:BOOL=OFF -DENABLE_yarpmod_portaudioRecorder:BOOL=OFF"
export YARP_CMAKE_OPTIONS="${YARP_CMAKE_OPTIONS} -DENABLE_yarpmod_opencv_grabber:BOOL=OFF"
.export_cmake_options_disable_failing_tests_cmd_definition: &export_cmake_options_disable_failing_tests_cmd |-
# export_cmake_options_disable_failing_tests_cmd
# Disable unit tests that randomly fail due to race conditions.
export YARP_CMAKE_OPTIONS="${YARP_CMAKE_OPTIONS} -DYARP_DISABLE_FAILING_TESTS:BOOL=ON"
.export_cmake_options_enable_broken_tests_cmd_definition: &export_cmake_options_enable_broken_tests_cmd |-
export YARP_CMAKE_OPTIONS="${YARP_CMAKE_OPTIONS} -DYARP_ENABLE_BROKEN_TESTS:BOOL=ON"
.print_cmake_flags_cmd_definition: &print_cmake_flags_cmd |-
# Print cmake flags
echo "-G\"${TRAVIS_CMAKE_GENERATOR}\" -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE} ${YARP_CMAKE_OPTIONS}"
.run_cmake_cmd_definition: &run_cmake_cmd |-
# Run CMake
(cd build; cmake -G"${TRAVIS_CMAKE_GENERATOR}" -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE} ${YARP_CMAKE_OPTIONS} ..)
.print_cmake_cache_cmd_definition: &print_cmake_cache_cmd |-
# Print cmake cache
(cd build; cat CMakeCache.txt)
.build_yarp_cmd_definition: &build_yarp_cmd |-
# Build yarp
(cd build; cmake --build . --config ${TRAVIS_BUILD_TYPE}) || travis_terminate 1
.run_unit_tests_cmd_definition: &run_unit_tests_cmd |-
# Run unit tests
(cd build; ctest --build . -C ${TRAVIS_BUILD_TYPE} || ctest --build . -C ${TRAVIS_BUILD_TYPE} --rerun-failed) || travis_terminate 1
.install_yarp_cmd_definition: &install_yarp_cmd |-
# Test installation
(cd build; cmake --build . --config ${TRAVIS_BUILD_TYPE} --target install) || travis_terminate 1
.build_yarp_os_examples_cmd_definition: &build_yarp_os_examples_cmd |-
# Build also the os examples
mkdir example/os/build
(cd example/os/build; cmake -G"${TRAVIS_CMAKE_GENERATOR}" -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE} -DYARP_DIR=${YARP_INSTALL_PREFIX}/lib/cmake/YARP ..) || travis_terminate 1
(cd example/os/build; cmake --build . --config ${TRAVIS_BUILD_TYPE})
.build_bindings_from_build_cmd_definition: &build_bindings_from_build_cmd |-
# Build bindings from build directory
export YARP_BINDINGS_OPTIONS="-DYARP_COMPILE_BINDINGS:BOOL=ON -DCREATE_LUA:BOOL=ON -DCREATE_RUBY:BOOL=ON -DCREATE_PYTHON:BOOL=ON -DCREATE_TCL:BOOL=ON -DCREATE_JAVA:BOOL=ON -DCREATE_CSHARP:BOOL=ON -DCREATE_PERL:BOOL=ON"
(cd build; cmake -G"${TRAVIS_CMAKE_GENERATOR}" -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE} ${YARP_CMAKE_OPTIONS} ${YARP_BINDINGS_OPTIONS} ..) || travis_terminate 1
(cd build; cmake --build . --config ${TRAVIS_BUILD_TYPE}) || travis_terminate 1
(cd build; ctest --build . -C ${TRAVIS_BUILD_TYPE} -R bindings) || travis_terminate 1
.build_bindings_from_install_cmd_definition: &build_bindings_from_install_cmd |-
# Build bindings from yarp installation
mkdir -p "${PWD}/install/share/yarp/bindings/build"
(cd "${PWD}/install/share/yarp/bindings/build" && cmake -G"${TRAVIS_CMAKE_GENERATOR}" -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE} -DYARP_DIR=${YARP_INSTALL_PREFIX}/lib/cmake/YARP ${YARP_BINDINGS_OPTIONS} ..) || travis_terminate 1
(cd "${PWD}/install/share/yarp/bindings/build" && cmake --build . --config ${TRAVIS_BUILD_TYPE}) || travis_terminate 1
.addons_base_definition:
addons: &addons_base
apt: &addons_apt_base
update: true
sources:
- sourceline: 'ppa:robotology/ppa'
- sourceline: 'deb https://apt.kitware.com/ubuntu/ bionic main'
key_url: 'https://apt.kitware.com/keys/kitware-archive-latest.asc'
#- ubuntu-toolchain-r-test
#- llvm-toolchain-bionic-8
packages: &apt_packages_common
# Build tools
- cmake
- ccache
# Robotology dependencies
- ycm-cmake-modules
- librobottestingframework-dev
# Libraries
- libsqlite3-dev
- libtinyxml-dev
- libedit-dev
- qtbase5-dev
- qtdeclarative5-dev
- qtmultimedia5-dev
- libqt5opengl5-dev
- libqcustomplot-dev
- libopencv-dev
- libeigen3-dev
- libgraphviz-dev
- libgstreamer1.0-dev
- libgstreamer-plugins-base1.0-dev
- libpng-dev
- libv4l-dev
- libavcodec-dev
- libavdevice-dev
- libavformat-dev
- libavutil-dev
- portaudio19-dev
.apt_packages_ace_definition: &apt_packages_ace
- libace-dev
.apt_packages_bindings_definition: &apt_packages_bindings
# Bindings
- swig3.0
# C# bindings
- mono-mcs
# Lua bindings
- liblua5.3-dev
- lua5.3
# TCL/TK bindings
- tcl-dev
- tk-dev
# Python bindings
- python3-dev
# Octave bindings
- liboctave-dev
# Java bindings
- default-jdk
# Ruby bindings
- ruby-dev
- ruby
# Perl bindings and license check
- perl
.apt_packages_linux_gcc_definition: &apt_packages_linux_gcc
- gcc-8
- g++-8
.apt_packages_linux_clang_definition: &apt_packages_linux_clang
- clang-8
.apt_packages_ninja_definition: &apt_packages_ninja
- ninja-build
.apt_packages_valgrind_definition: &apt_packages_valgrind
- valgrind
.apt_packages_coverage_definition: &apt_packages_coverage
- lcov
homebrew: &addons_homebrew_base
update: true
taps:
- robotology/homebrew-formulae
packages:
# Build tools
- ccache
# Robotology dependencies
- ycm
# Libraries
- ace
- sqlite
- tinyxml
- libedit
- qt5
- opencv
- eigen
- graphviz
- libpng
.cmake_configure_definition: &cmake_configure_template
os: linux
dist: bionic
language: generic
services:
- docker
before_install:
- docker pull drdanz/ycm:cmake-${TRAVIS_CMAKE_VERSION}_ycm-${TRAVIS_YCM_VERSION}
- >-
docker run -it -d \
-v $TRAVIS_BUILD_DIR:$TRAVIS_BUILD_DIR \
-v $HOME/.ccache:$HOME/.ccache \
-w $TRAVIS_BUILD_DIR \
--name yarp-builder \
drdanz/ycm:cmake-${TRAVIS_CMAKE_VERSION}_ycm-${TRAVIS_YCM_VERSION}
- >-
- docker exec -it yarp-builder cmake --version
- docker exec -it yarp-builder mkdir $TRAVIS_BUILD_DIR/build
install: skip
before_script: skip
script:
- docker exec -it yarp-builder sh -c "cd $TRAVIS_BUILD_DIR/build; cmake .. -DSKIP_ACE=ON"
after_success: skip
.linux_base_build_definition: &linux_base_build_template
os: linux
dist: bionic
language: cpp
compiler: gcc
cache:
ccache: true
install: skip
script:
- *build_yarp_cmd
- *run_unit_tests_cmd
- *install_yarp_cmd
- *build_yarp_os_examples_cmd
- *build_bindings_from_build_cmd
- *build_bindings_from_install_cmd
after_success: skip
.linux_gcc_build_definition: &linux_gcc_build_template
<<: *linux_base_build_template
addons:
apt:
<<: *addons_apt_base
packages:
- *apt_packages_common
- *apt_packages_ace
- *apt_packages_linux_gcc
- *apt_packages_bindings
.force_gcc_cmd_definition: &force_gcc_cmd |-
# Force gcc-8
export CC=gcc-8
export CXX=g++-8
before_install:
- *stop_docker_cmd
- *force_gcc_cmd
- *linux_system_info_cmd
before_script:
- *prepare_build_dir_cmd
- *export_cmake_options_base_cmd
- *export_cmake_options_linux_cmd
- *export_cmake_options_linux_gcc_cmd
- *print_cmake_flags_cmd
- *run_cmake_cmd
- *print_cmake_cache_cmd
.linux_clang_build_definition: &linux_clang_build_template
<<: *linux_base_build_template
addons:
apt:
<<: *addons_apt_base
packages:
- *apt_packages_common
- *apt_packages_ace
- *apt_packages_linux_clang
- *apt_packages_bindings
.force_clang_cmd_definition: &force_clang_cmd |-
# Remove default clang from path
export PATH=$(echo $PATH | sed -e 's/\/usr\/local\/clang[^:]\+://')
# Force clang-8
export CC=clang-8
export CXX=clang++-8
# Use ccache also for clang and clang++ on linux
mkdir -p ${HOME}/lib/ccache
ln -s /usr/bin/ccache ${HOME}/lib/ccache/clang
ln -s /usr/bin/ccache ${HOME}/lib/ccache/clang++
ln -s /usr/bin/ccache ${HOME}/lib/ccache/clang-8
ln -s /usr/bin/ccache ${HOME}/lib/ccache/clang++-8
export PATH=${HOME}/lib/ccache:${PATH}
before_install:
- *stop_docker_cmd
- *force_clang_cmd
- *linux_system_info_cmd
before_script:
- *prepare_build_dir_cmd
- *export_cmake_options_base_cmd
- *export_cmake_options_linux_cmd
- *export_cmake_options_linux_clang_cmd
- *print_cmake_flags_cmd
- *run_cmake_cmd
- *print_cmake_cache_cmd
.osx_build_definition: &osx_build_template
os: osx
osx_image: xcode9.4
language: cpp
compiler: clang
cache:
ccache: true
directories:
- $HOME/Library/Caches/Homebrew
addons:
homebrew:
<<: *addons_homebrew_base
.osx_enable_ccache_cmd_definition: &osx_enable_ccache_cmd |-
# Enable ccache on osx
export PATH="/usr/local/opt/ccache/libexec:$PATH"
.osx_enable_qt5_cmd_definition: &osx_enable_qt5_cmd |-
# Enable automatic Qt5 detection on osx
export Qt5_DIR="/usr/local/opt/qt5/lib/cmake/Qt5"
before_install:
- *osx_enable_ccache_cmd
- *osx_system_info_cmd
install:
- *osx_enable_qt5_cmd
before_script:
- *prepare_build_dir_cmd
- *export_cmake_options_base_cmd
- *export_cmake_options_osx_cmd
- *export_cmake_options_disable_failing_tests_cmd
- *print_cmake_flags_cmd
- *run_cmake_cmd
- *print_cmake_cache_cmd
script:
- *build_yarp_cmd
- *run_unit_tests_cmd
after_success: skip
matrix:
fast_finish: true
include:
- stage: check
name: "Style check"
os: linux
dist: bionic
language: generic
addons:
apt:
packages:
- perl
before_install: skip
before_script: skip
script: tests/misc/check_style.pl
after_success: skip
- stage: check
name: "License check"
os: linux
dist: bionic
language: generic
addons:
apt:
packages:
- perl
before_install: skip
before_script: skip
script: tests/misc/check_license.pl
after_success: skip
- stage: cmake
<<: *cmake_configure_template
name: "Configure using CMake 3.12 and YCM 0.11.0"
env:
- TRAVIS_CMAKE_VERSION="3.12"
- TRAVIS_YCM_VERSION="0.11.0"
- stage: cmake
<<: *cmake_configure_template
name: "Configure using CMake 3.13 and YCM 0.11.0"
env:
- TRAVIS_CMAKE_VERSION="3.13"
- TRAVIS_YCM_VERSION="0.11.0"
- stage: cmake
<<: *cmake_configure_template
name: "Configure using CMake 3.14 and YCM 0.11.0"
env:
- TRAVIS_CMAKE_VERSION="3.14"
- TRAVIS_YCM_VERSION="0.11.0"
- stage: cmake
<<: *cmake_configure_template
name: "Configure using CMake 3.15 and YCM 0.11.0"
env:
- TRAVIS_CMAKE_VERSION="3.15"
- TRAVIS_YCM_VERSION="0.11.0"
- stage: cmake
<<: *cmake_configure_template
name: "Configure using CMake 3.16 and YCM 0.11.0"
env:
- TRAVIS_CMAKE_VERSION="3.16"
- TRAVIS_YCM_VERSION="0.11.0"
- stage: test
<<: *linux_gcc_build_template
name: "Standard build (linux, gcc)"
- stage: test
<<: *linux_clang_build_template
name: "Standard build (linux, clang)"
- stage: test
<<: *linux_gcc_build_template
name: "No ACE build (linux, gcc)"
addons:
apt:
<<: *addons_apt_base
packages:
- *apt_packages_common
- *apt_packages_linux_gcc
- *apt_packages_bindings
before_script:
- *prepare_build_dir_cmd
- *export_cmake_options_base_cmd
- *export_cmake_options_linux_cmd
- *export_cmake_options_linux_gcc_cmd
- *export_cmake_options_skip_ace_cmd
- *print_cmake_flags_cmd
- *run_cmake_cmd
- *print_cmake_cache_cmd
- stage: test
<<: *linux_clang_build_template
name: "No ACE build (linux, clang)"
addons:
apt:
<<: *addons_apt_base
packages:
- *apt_packages_common
- *apt_packages_linux_clang
- *apt_packages_bindings
before_script:
- *prepare_build_dir_cmd
- *export_cmake_options_base_cmd
- *export_cmake_options_linux_cmd
- *export_cmake_options_linux_clang_cmd
- *export_cmake_options_skip_ace_cmd
- *print_cmake_flags_cmd
- *run_cmake_cmd
- *print_cmake_cache_cmd
- stage: test
<<: *linux_gcc_build_template
name: "No YARP_math build (linux, gcc) - bindings disabled"
addons:
apt:
<<: *addons_apt_base
packages:
- *apt_packages_common
- *apt_packages_ace
- *apt_packages_linux_gcc
before_script:
- *prepare_build_dir_cmd
- *export_cmake_options_base_cmd
- *export_cmake_options_linux_cmd
- *export_cmake_options_linux_gcc_cmd
- *export_cmake_options_skip_math_cmd
- *print_cmake_flags_cmd
- *run_cmake_cmd
- *print_cmake_cache_cmd
script:
- *build_yarp_cmd
- *run_unit_tests_cmd
- *install_yarp_cmd
- *build_yarp_os_examples_cmd
- stage: test
<<: *linux_clang_build_template
name: "No YARP_math build (linux, clang) - bindings disabled"
addons:
apt:
<<: *addons_apt_base
packages:
- *apt_packages_common
- *apt_packages_ace
- *apt_packages_linux_clang
before_script:
- *prepare_build_dir_cmd
- *export_cmake_options_base_cmd
- *export_cmake_options_linux_cmd
- *export_cmake_options_linux_clang_cmd
- *export_cmake_options_skip_math_cmd
- *print_cmake_flags_cmd
- *run_cmake_cmd
- *print_cmake_cache_cmd
script:
- *build_yarp_cmd
- *run_unit_tests_cmd
- *install_yarp_cmd
- *build_yarp_os_examples_cmd
- stage: test
<<: *linux_gcc_build_template
name: "Standard build with CLEAN_API (linux, gcc) - unit tests and bindings disabled"
addons:
apt:
<<: *addons_apt_base
packages:
- *apt_packages_common
- *apt_packages_ace
- *apt_packages_linux_gcc
before_script:
- *prepare_build_dir_cmd
- *export_cmake_options_base_cmd
- *export_cmake_options_linux_cmd
- *export_cmake_options_linux_gcc_cmd
- *export_cmake_options_clean_api_cmd
- *print_cmake_flags_cmd
- *run_cmake_cmd
- *print_cmake_cache_cmd
script:
- *build_yarp_cmd
- *install_yarp_cmd
- *build_yarp_os_examples_cmd
- stage: test
<<: *linux_clang_build_template
name: "Standard build with CLEAN_API (linux, clang) - unit tests and bindings disabled"
addons:
apt:
<<: *addons_apt_base
packages:
- *apt_packages_common
- *apt_packages_ace
- *apt_packages_linux_clang
before_script:
- *prepare_build_dir_cmd
- *export_cmake_options_base_cmd
- *export_cmake_options_linux_cmd
- *export_cmake_options_linux_clang_cmd
- *export_cmake_options_clean_api_cmd
- *print_cmake_flags_cmd
- *run_cmake_cmd
- *print_cmake_cache_cmd
script:
- *build_yarp_cmd
- *install_yarp_cmd
- *build_yarp_os_examples_cmd
- stage: test
<<: *linux_gcc_build_template
name: "Static build (linux, gcc)"
before_script:
- *prepare_build_dir_cmd
- *export_cmake_options_base_cmd
- *export_cmake_options_linux_cmd
- *export_cmake_options_linux_gcc_cmd
- *export_cmake_options_static_cmd
- *print_cmake_flags_cmd
- *run_cmake_cmd
- *print_cmake_cache_cmd
- stage: test
<<: *linux_clang_build_template
name: "Static build (linux, clang)"
before_script:
- *prepare_build_dir_cmd
- *export_cmake_options_base_cmd
- *export_cmake_options_linux_cmd
- *export_cmake_options_linux_clang_cmd
- *export_cmake_options_static_cmd
- *print_cmake_flags_cmd
- *run_cmake_cmd
- *print_cmake_cache_cmd
- stage: test
<<: *linux_gcc_build_template
name: "Static build, no ACE (linux, gcc) - bindings disabled"
addons:
apt:
<<: *addons_apt_base
packages:
- *apt_packages_common
- *apt_packages_linux_gcc
before_script:
- *prepare_build_dir_cmd
- *export_cmake_options_base_cmd
- *export_cmake_options_linux_cmd
- *export_cmake_options_linux_gcc_cmd
- *export_cmake_options_skip_ace_cmd
- *export_cmake_options_static_cmd
- *print_cmake_flags_cmd
- *run_cmake_cmd
- *print_cmake_cache_cmd
script:
- *build_yarp_cmd
- *run_unit_tests_cmd
- *install_yarp_cmd
- *build_yarp_os_examples_cmd
- stage: test
<<: *linux_clang_build_template
name: "Static build, no ACE (linux, clang) - bindings disabled"
addons:
apt:
<<: *addons_apt_base
packages:
- *apt_packages_common
- *apt_packages_linux_clang
before_script:
- *prepare_build_dir_cmd
- *export_cmake_options_base_cmd
- *export_cmake_options_linux_cmd
- *export_cmake_options_linux_clang_cmd
- *export_cmake_options_skip_ace_cmd
- *export_cmake_options_static_cmd
- *print_cmake_flags_cmd
- *run_cmake_cmd
- *print_cmake_cache_cmd
script:
- *build_yarp_cmd
- *run_unit_tests_cmd
- *install_yarp_cmd
- *build_yarp_os_examples_cmd
- stage: test
<<: *linux_gcc_build_template
name: "Standard build no deprecated (linux, gcc)"
before_script:
- *prepare_build_dir_cmd
- *export_cmake_options_base_cmd
- *export_cmake_options_linux_cmd
- *export_cmake_options_linux_gcc_cmd
- *export_cmake_options_no_deprecated_cmd
- *print_cmake_flags_cmd
- *run_cmake_cmd
- *print_cmake_cache_cmd
- stage: test
<<: *linux_clang_build_template
name: "Standard build no deprecated (linux, clang)"
before_script:
- *prepare_build_dir_cmd
- *export_cmake_options_base_cmd
- *export_cmake_options_linux_cmd
- *export_cmake_options_linux_clang_cmd
- *export_cmake_options_no_deprecated_cmd
- *print_cmake_flags_cmd
- *run_cmake_cmd
- *print_cmake_cache_cmd
- stage: test
<<: *linux_gcc_build_template
name: "No-executables build (linux, gcc) - unit tests disabled"
before_script:
- *prepare_build_dir_cmd
- *export_cmake_options_base_cmd
- *export_cmake_options_linux_cmd
- *export_cmake_options_linux_gcc_cmd
- *export_cmake_options_no_executables_cmd
- *print_cmake_flags_cmd
- *run_cmake_cmd
- *print_cmake_cache_cmd
script:
- *build_yarp_cmd
- *install_yarp_cmd
- *build_yarp_os_examples_cmd
- *build_bindings_from_build_cmd
- *build_bindings_from_install_cmd
- stage: test
<<: *linux_clang_build_template
name: "No-executables build (linux, clang) - unit tests disabled"
before_script:
- *prepare_build_dir_cmd
- *export_cmake_options_base_cmd
- *export_cmake_options_linux_cmd
- *export_cmake_options_linux_clang_cmd
- *export_cmake_options_no_executables_cmd
- *print_cmake_flags_cmd
- *run_cmake_cmd
- *print_cmake_cache_cmd
script:
- *build_yarp_cmd
- *install_yarp_cmd
- *build_yarp_os_examples_cmd
- *build_bindings_from_build_cmd
- *build_bindings_from_install_cmd
- stage: test
<<: *linux_gcc_build_template
name: "Standard build with Ninja generator (linux, gcc)"
addons:
apt:
<<: *addons_apt_base
packages:
- *apt_packages_common
- *apt_packages_ace
- *apt_packages_linux_gcc
- *apt_packages_bindings
- *apt_packages_ninja
env:
- TRAVIS_CMAKE_GENERATOR="Ninja"
- stage: test
<<: *linux_clang_build_template
name: "Standard build with Ninja generator (linux, clang)"
addons:
apt:
<<: *addons_apt_base
packages:
- *apt_packages_common
- *apt_packages_ace
- *apt_packages_linux_clang
- *apt_packages_bindings
- *apt_packages_ninja
env:
- TRAVIS_CMAKE_GENERATOR="Ninja"
- stage: test-long
<<: *linux_gcc_build_template
name: "Standard build with valgrind (linux, gcc) - bindings and failing tests disabled"
env:
- TRAVIS_BUILD_TYPE=Debug
addons:
apt:
<<: *addons_apt_base
packages:
- *apt_packages_common
- *apt_packages_linux_gcc
- *apt_packages_ace
- *apt_packages_valgrind
before_script:
- *prepare_build_dir_cmd
- *export_cmake_options_base_cmd
- *export_cmake_options_linux_cmd
- *export_cmake_options_linux_gcc_cmd
- *export_cmake_options_valgrind_cmd
- *export_cmake_options_disable_failing_tests_cmd
- *print_cmake_flags_cmd
- *run_cmake_cmd
- *print_cmake_cache_cmd
script:
- *build_yarp_cmd
- *run_unit_tests_cmd
- *install_yarp_cmd
- *build_yarp_os_examples_cmd
- stage: test-long
<<: *linux_gcc_build_template
name: "No ACE build with valgrind (linux, gcc) - bindings and failing tests disabled"
env:
- TRAVIS_BUILD_TYPE=Debug
addons:
apt:
<<: *addons_apt_base
packages:
- *apt_packages_common
- *apt_packages_linux_gcc
- *apt_packages_valgrind
before_script:
- *prepare_build_dir_cmd
- *export_cmake_options_base_cmd
- *export_cmake_options_linux_cmd
- *export_cmake_options_linux_gcc_cmd
- *export_cmake_options_skip_ace_cmd
- *export_cmake_options_valgrind_cmd
- *export_cmake_options_disable_failing_tests_cmd
- *print_cmake_flags_cmd
- *run_cmake_cmd
- *print_cmake_cache_cmd
script:
- *build_yarp_cmd
- *run_unit_tests_cmd
- *install_yarp_cmd
- *build_yarp_os_examples_cmd
- stage: test-long
<<: *osx_build_template
name: "Standard build (osx, xcode9.4, clang) - installation, examples, bindings and failing tests disabled"
- stage: test-long
<<: *osx_build_template
name: "Standard build with Xcode (osx, xcode9.4, clang) - installation, examples, bindings and failing tests disabled"
env:
- TRAVIS_CMAKE_GENERATOR="Xcode"
- stage: test-long
<<: *osx_build_template
name: "Standard build with Xcode (osx, xcode10.2, clang) - installation, examples, bindings and failing tests disabled"
osx_image: xcode10.2
env:
- TRAVIS_CMAKE_GENERATOR="Xcode"
# - stage: test-long
# <<: *linux_gcc_build_template
# name: "Standard build with integration tests (linux, gcc)"
# addons:
# apt:
# <<: *addons_apt_base
# sources:
# - sourceline: 'ppa:robotology/ppa'
# #- ubuntu-toolchain-r-test
# #- llvm-toolchain-bionic-8
# - sourceline: 'deb http://packages.ros.org/ros/ubuntu bionic main'
# key_url: 'http://packages.ros.org/ros.key'
# packages:
# - *apt_packages_common
# - *apt_packages_ace
# - *apt_packages_linux_clang
# - *apt_packages_bindings
# - ros-melodic-desktop-full
# env:
# # ROS-related environment variables.
# - ROS_HOSTNAME=localhost
# - ROS_MASTER_URI=http://localhost:11311
# - ROBOT=sim
# install:
# ## Install swig stuff
# - wget https://github.com/robotology-dependencies/swigs/releases/download/v0.0.7/swigs.zip -O /tmp/swigs.zip
# - unzip -q /tmp/swigs.zip
# - mkdir -p build/cache
# - mv swigs cache/swig
# - ln -s ../cache build/cache
# ## Init ROS
# - source /opt/ros/melodic/setup.bash
# before_script:
# - *prepare_build_dir_cmd
# - *export_cmake_options_base_cmd
# - *export_cmake_options_linux_cmd
# - *export_cmake_options_linux_gcc_cmd
# - export YARP_CMAKE_OPTIONS="${YARP_CMAKE_OPTIONS} -DYARP_ENABLE_INTEGRATION_TESTS:BOOL=ON"
# - *print_cmake_flags_cmd
# - *run_cmake_cmd
# - *print_cmake_cache_cmd
# script:
# - *build_yarp_cmd
# - build/bin/yarp conf 0 0 local
# - *run_unit_tests_cmd
# - *install_yarp_cmd
# - *build_yarp_os_examples_cmd
# - *build_bindings_from_build_cmd
# - *build_bindings_from_install_cmd
#
# - stage: test-long
# <<: *linux_gcc_build_template
# name: "Standard build with coverage (linux, gcc)"
# addons:
# apt:
# <<: *addons_apt_base
# packages:
# - *apt_packages_common
# - *apt_packages_linux_gcc
# - *apt_packages_ace
# - *apt_packages_bindings
# - *apt_packages_coverage
# env:
# - TRAVIS_BUILD_TYPE=Profile
# before_script:
# - *prepare_build_dir_cmd
# - *export_cmake_options_base_cmd
# - *export_cmake_options_linux_cmd
# - *export_cmake_options_linux_gcc_cmd
# - *print_cmake_flags_cmd
# - *run_cmake_cmd
# - *print_cmake_cache_cmd
# - (cd build; lcov --directory . --zerocounters)
# after_success:
# # Capture coverage info for Profile builds
# - (cd build; lcov --directory . --capture --output-file coverage.info)
# # Filter out system and test code
# - (cd build; lcov --remove coverage.info '/usr/*' 'tests/*' 'example/*' 'extern/*' 'build/*' --output-file coverage.info)
# # Debug before upload
# - (cd build; lcov --list coverage.info)
# # Uploads to coveralls
# - (cd build; coveralls-lcov --source-encoding=ISO-8859-1 coverage.info)
#
# - stage: test-long
# <<: *linux_gcc_build_template
# name: "Standard build with broken tests (linux, gcc)"
# before_script:
# - *prepare_build_dir_cmd
# - *export_cmake_options_base_cmd
# - *export_cmake_options_linux_cmd
# - *export_cmake_options_linux_gcc_cmd
# - *export_cmake_options_enable_broken_tests_cmd
# - *print_cmake_flags_cmd
# - *run_cmake_cmd
# - *print_cmake_cache_cmd
#
# allow_failure:
# - name: "Standard build with broken tests (linux, gcc)"
1
https://gitee.com/erichong007/yarp.git
git@gitee.com:erichong007/yarp.git
erichong007
yarp
yarp
master

搜索帮助