Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis CI #28

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Create .travis.yml
  • Loading branch information
henrique committed Apr 29, 2015
commit 2689974dba3ba2ebb3da2354fbbb7ef127bc29f9
42 changes: 42 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
language: cpp

before_install:
- export NUM_CPU="`grep processor /proc/cpuinfo | wc -l`"; echo $NUM_CPU
- sudo apt-get install -qq libatlas-base-dev libeigen3-dev gfortran libsuitesparse-dev


install:
- cd ..

# install gflags
- curl https://gflags.googlecode.com/files/gflags-2.0-no-svn-files.tar.gz | tar xvz
- cd gflags-2.0
- ./configure --prefix=/usr/local
- make -j$NUM_CPU
- sudo make install
- cd ..

# install glog
- curl https://google-glog.googlecode.com/files/glog-0.3.3.tar.gz | tar xvz
- cd glog-0.3.3
- ./configure --with-gflags=/usr/local/
- make -j$NUM_CPU
- sudo make install
- cd ..

# install ceres
- curl http://ceres-solver.org/ceres-solver-1.10.0.tar.gz | tar xvz
- mkdir ceres-bin
- cd ceres-bin
- cmake ../ceres-solver-1.10.0
- make -j8
# - make test
- sudo make install
- cd ..

- cd bundler_sfm


script:
- make -j$NUM_CPU
- sudo cp bin/libANN_char.so /usr/lib