代码拉取完成,页面将自动刷新
language: cpp
notifications:
email:
recipients:
- rainer.kuemmerle@gmail.com
on_success: change # default: change
on_failure: always # default: always
env:
global:
- DO_COVERAGE=OFF
# where do we want to build
matrix:
include:
- os: linux
arch: amd64
compiler: gcc
dist: focal
env: DO_COVERAGE=ON
- os: linux
arch: amd64
compiler: clang
dist: focal
- os: osx
arch: amd64
osx_image: xcode12.2
before_install:
- if [ "$TRAVIS_BRANCH" = "master" ] && [ "$DO_COVERAGE" = "ON" ]; then
echo "Activating code coverage build";
export DO_COVERAGE_BUILD=ON;
else
export DO_COVERAGE_BUILD=OFF;
fi
- env | sort
# install:
# - script/install-deps-${TRAVIS_OS_NAME}.sh
before_script:
- mkdir build
- cd build
- cmake --version
- cmake -DBUILD_UNITTESTS=ON -DBUILD_CODE_COVERAGE=$DO_COVERAGE_BUILD -DCMAKE_BUILD_TYPE=Debug ..
- cat g2o/config.h
script:
- make -j $(nproc)
- ctest --extra-verbose --output-on-failure
after_success:
- if [ "$DO_COVERAGE_BUILD" = "ON" ]; then
echo "Uploading to codecov";
bash $TRAVIS_BUILD_DIR/build/codecov.sh;
fi
# installing dependencies
addons:
apt: # linux
packages:
- libeigen3-dev
- qtdeclarative5-dev
- qt5-qmake
- libqglviewer-dev-qt5
- libsuitesparse-dev
- lcov
homebrew: # mac os
packages:
- cmake
- eigen
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。