Skip to content
Snippets Groups Projects
.travis.yml 2.13 KiB
Newer Older
Jeongseok Lee's avatar
Jeongseok Lee committed
language: cpp

env:
  global:
    - CTEST_PARALLEL_LEVEL=4
    - CTEST_OUTPUT_ON_FAILURE=1
    - CXX_FLAGS_DEBUG="-O1"
Jeongseok Lee's avatar
Jeongseok Lee committed

Joseph Mirabel's avatar
Joseph Mirabel committed
cache:
  ccache: true

Jeongseok Lee's avatar
Jeongseok Lee committed
matrix:
    - name: "Trusty - Release - g++"
      env: BUILD_TYPE=Release
Joseph Mirabel's avatar
Joseph Mirabel committed
      addons:
        apt:
          packages:
            - cmake
            - libboost-all-dev
            - libassimp-dev
            - libeigen3-dev

    - name: "Xenial - Release - g++"
      env: BUILD_TYPE=Release
      dist: xenial
      compiler: g++
Joseph Mirabel's avatar
Joseph Mirabel committed
      addons:
        apt:
          packages:
Joseph Mirabel's avatar
Joseph Mirabel committed
            - cmake
            - libboost-all-dev
            - libassimp-dev
            - libeigen3-dev
Joseph Mirabel's avatar
Joseph Mirabel committed
            - liboctomap-dev

    - name: "Bionic - Release - g++"
      env: BUILD_TYPE=Release
Joseph Mirabel's avatar
Joseph Mirabel committed
      addons:
        apt:
          packages:
Joseph Mirabel's avatar
Joseph Mirabel committed
            - cmake
            - libboost-all-dev
            - libassimp-dev
            - libeigen3-dev
Joseph Mirabel's avatar
Joseph Mirabel committed
            - liboctomap-dev

    - name: "Bionic - Debug - g++"
      env: BUILD_TYPE=Debug
Joseph Mirabel's avatar
Joseph Mirabel committed
      addons:
        apt:
          packages:
Joseph Mirabel's avatar
Joseph Mirabel committed
            - cmake
            - libboost-all-dev
            - libassimp-dev
            - libeigen3-dev
Joseph Mirabel's avatar
Joseph Mirabel committed
            - liboctomap-dev
    - name: "OSX - Release - clang"
      env: BUILD_TYPE=Release
      compiler: clang
Joseph Mirabel's avatar
Joseph Mirabel committed
      cache:
        ccache: true
        directories:
          - $HOME/Library/Caches/Homebrew
Jeongseok Lee's avatar
Jeongseok Lee committed

before_install:
  - if [ "$TRAVIS_OS_NAME" = "linux" ]; then source travis_custom/custom_before_install_linux.sh ; fi
Joseph Mirabel's avatar
Joseph Mirabel committed
  - if [ "$TRAVIS_OS_NAME" = "osx"   ]; then source travis_custom/custom_before_install_osx.sh   ; fi
Jeongseok Lee's avatar
Jeongseok Lee committed
script:
  # Create build directory
  - mkdir build
  - cd build
Jeongseok Lee's avatar
Jeongseok Lee committed

  # Configure
  - cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_CXX_FLAGS=-w -DCMAKE_CXX_FLAGS_DEBUG=${CXX_FLAGS_DEBUG} -DBUILD_PYTHON_INTERFACE=${BUILD_PYTHON_INTERFACE} ..
Jeongseok Lee's avatar
Jeongseok Lee committed

  # Build
Jeongseok Lee's avatar
Jeongseok Lee committed

  # Run unit tests
Jeongseok Lee's avatar
Jeongseok Lee committed

  # Make sure we can install and uninstall with no issues
  - sudo make install
  - sudo make uninstall