代码拉取完成,页面将自动刷新
language: cpp
matrix:
include:
- os: linux
dist: xenial
sudo: required
- os: osx
sudo: required
addons:
apt:
packages:
- git
- mercurial
- cmake
- libpng-dev
- libjpeg-dev
- libtiff-dev
- libglu1-mesa-dev
- libboost-iostreams-dev
- libboost-program-options-dev
- libboost-system-dev
- libboost-serialization-dev
- libopencv-dev
- libcgal-dev
- libatlas-base-dev
- libsuitesparse-dev
- freeglut3-dev
- libglew-dev
- libglfw3-dev
before_install:
- echo $LANG
- export OMP_NUM_THREADS=4
install:
### Common
# Install the latest version of VCG
- git clone https://github.com/cdcseacave/VCG.git /tmp/vcglib
### LINUX
# Install the latest version of Eigen
- if [ $TRAVIS_OS_NAME == linux ]; then hg clone https://bitbucket.org/eigen/eigen#3.2 /tmp/eigen && mkdir /tmp/eigen-build && cd /tmp/eigen-build && cmake . /tmp/eigen && make && sudo make install && cd -; fi
# Install the latest version of Ceres Solver
- if [ $TRAVIS_OS_NAME == linux ]; then git clone --branch=master git://github.com/ceres-solver/ceres-solver.git /tmp/ceres-solver && mkdir /tmp/ceres-solver-build && cd /tmp/ceres-solver-build && cmake /tmp/ceres-solver -DMINIGLOG=ON -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF && make -j4 && sudo make install && cd -; fi
### OSX
# Install dependencies
- if [ $TRAVIS_OS_NAME == osx ]; then brew update && brew tap homebrew/science && brew install boost eigen opencv cgal ceres-solver; fi
before_script:
- cd ..
- mkdir build
- cd build
- cmake . ../openMVS -DCMAKE_BUILD_TYPE=Release -DVCG_DIR="/tmp/vcglib"
script:
- make -j4
after_success:
- if [ $TRAVIS_BRANCH == $TRAVIS_TAG ]; then rake deploy; fi
branches:
only:
- master
- develop
notifications:
email: true
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。