.travis.yml 926 Bytes
Newer Older
1
language: cpp
2 3 4 5 6 7
env:
    - builder=scons
    - builder=cmake
os:
    - linux
    - osx
8

9 10
dist: trusty
sudo: required
11

12 13 14 15 16 17 18 19
addons:
    apt:
        sources:
            - ubuntu-toolchain-r-test
        packages:
            - g++-6
            - cmake
            - libeigen3-dev
20
            - libpython3-dev
21
            - python3-numpy
22 23 24 25

before_install:
   - OMP_NUM_THREADS=2
   - eval "${MATRIX_EVAL}"
26 27 28
   - echo "${builder}"
   - if [ ${TRAVIS_OS_NAME} = 'osx' ]; then
        brew update;
29
        brew install scons eigen ceres-solver;
30
     fi
31 32 33 34

script:
   - git submodule init
   - git submodule update
35 36 37 38 39 40 41 42 43 44
   - if [ ${builder} = 'scons' ]; then
        scons;
        scons tests;
     else
        mkdir build;
        cd build;
        cmake ..;
        make -i;
        make test;
     fi
45

46
after_failure:
47 48 49
   - if [ ${builder} = 'scons' ]; then
        cat config.log;
     else
50
        cat Testing/Temporary/LastTest.log;
51
     fi