代码拉取完成,页面将自动刷新
同步操作将从 飞行器智能感知与控制/GSLAM 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
language: cpp
sudo: true
dist: trusty
matrix:
include:
- os: linux
env: CMAKE_OPTIONS="-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=bin -DOPENGL_ENABLED=OFF -DCeres_DIR=${TRAVIS_BUILD_DIR}/deps/ceres-solver/install/lib/cmake/Ceres -DQt5Core_DIR=/opt/qt54/lib/cmake/Qt5Core -DQt5OpenGL_DIR=/opt/qt54/lib/cmake/Qt5OpenGL" QT_QPA_PLATFORM=offscreen
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake
- build-essential
- libeigen3-dev
- libatlas-base-dev
- libsuitesparse-dev
- libfreeimage-dev
- libgoogle-glog-dev
- libgflags-dev
- libglew-dev
- os: osx
env: CMAKE_OPTIONS="-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=bin -DIPO_ENABLED=OFF -DQt5_DIR=/usr/local/opt/qt5/lib/cmake/Qt5 -DQt5Core_DIR=/usr/local/opt/qt5/lib/cmake/Qt5Core -DQt5OpenGL_DIR=/usr/local/opt/qt5/lib/cmake/Qt5OpenGL"
cache:
directories:
- ${TRAVIS_BUILD_DIR}/deps
- ${TRAVIS_BUILD_DIR}/build
before_script:
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew tap homebrew/science
brew install \
cmake \
eigen \
glog \
gflags \
suite-sparse \
ceres-solver \
qt5 \
glew || true
fi
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start
sleep 3
sudo add-apt-repository --yes ppa:beineri/opt-qt542-trusty
sudo apt-get update -qq
sudo apt-get -y install qt54base
sudo apt-get -y install libopencv-dev
cd ${TRAVIS_BUILD_DIR}/deps
if [[ -z "$(ls -A ceres-solver)" ]]; then
git clone https://ceres-solver.googlesource.com/ceres-solver
fi
cd ceres-solver
git pull
mkdir -p build install
cd build
cmake .. \
-DBUILD_TESTING=OFF \
-DBUILD_EXAMPLES=OFF
make -j2
make install
cd ${TRAVIS_BUILD_DIR}
fi
script:
- cmake --version
- cd build
- |
if [[ -z "$(ls -A GSLAM)" ]]; then
git clone https://github.com/zdzhaoyong/GSLAM.git
fi
- cd GSLAM
- git checkout ${TRAVIS_BRANCH}
- git pull
- mkdir -p build
- cd build
- pwd
- cmake .. -DCMAKE_BUILD_TYPE=Release -DTESTS_ENABLED=ON ${CMAKE_OPTIONS}
- make -j2
- ./bin/gslam Act=Tests
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。