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

os:
  - linux
  - osx

compiler:
  - gcc
  - clang

env:
  - BUILD_TYPE=Debug
  - BUILD_TYPE=Release

matrix:
  exclude:
    - os: osx
      compiler: gcc

install:
  # Install dependencies for FCL
  - if [ "$TRAVIS_OS_NAME" = "linux" ]; then 'ci/install_linux.sh' ; fi
  - if [ "$TRAVIS_OS_NAME" = "osx"   ]; then 'ci/install_osx.sh'   ; fi

script:
  # Create build directory
  - mkdir build
  - cd build 

  # Configure
jcarpent's avatar
jcarpent committed
  - cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_CXX_FLAGS=-w ..
Jeongseok Lee's avatar
Jeongseok Lee committed

  # Build
  - make -j4

  # Run unit tests
  - make test

  # 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
Jeongseok Lee's avatar
Jeongseok Lee committed