Skip to content
Snippets Groups Projects
.travis.yml 1.7 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

matrix:
    - name: "Trusty - Debug - g++"
      env: BUILD_TYPE=Debug
      dist: trusty
      compiler: g++

    - name: "Xenial - Debug - g++"
      env: BUILD_TYPE=Debug
      dist: xenial
      compiler: g++
Joseph Mirabel's avatar
Joseph Mirabel committed
      addons:
        apt:
          packages:
            - liboctomap-dev
    - name: "Xenial - Release - g++"
      env: BUILD_TYPE=Release
      dist: xenial
      compiler: g++
Joseph Mirabel's avatar
Joseph Mirabel committed
      addons:
        apt:
          packages:
            - liboctomap-dev
    - name: "Xenial - Debug - clang"
      env: BUILD_TYPE=Debug
      dist: xenial
      compiler: clang
Joseph Mirabel's avatar
Joseph Mirabel committed
      addons:
        apt:
          packages:
            - liboctomap-dev

    - name: "Bionic - Debug - g++"
      env: BUILD_TYPE=Debug
      dist: xenial
      compiler: g++
Joseph Mirabel's avatar
Joseph Mirabel committed
      addons:
        apt:
          packages:
            - liboctomap-dev

    - name: "OSX - Debug - clang"
      env: BUILD_TYPE=Debug
      os: osx
      compiler: clang
Jeongseok Lee's avatar
Jeongseok Lee committed

Joseph Mirabel's avatar
Joseph Mirabel committed
addons:
  apt:
    packages:
      - cmake
      - libboost-all-dev
      - libassimp-dev
      - libeigen3-dev
      - liboctomap-dev

  homebrew:
    taps: homebrew/science
Joseph Mirabel's avatar
Joseph Mirabel committed
    update: true
Joseph Mirabel's avatar
Joseph Mirabel committed
    packages:
      - git
      - cmake
      - boost
      - libccd
      - assimp
      - eigen
      - octomap
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} ..
Jeongseok Lee's avatar
Jeongseok Lee committed

  # Build
  - make -j4

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

  # Make sure we can install and uninstall with no issues
Jeongseok Lee's avatar
Jeongseok Lee committed
  - sudo make -j4 install
  - sudo make -j4 uninstall