.travis.yml 742 Bytes
Newer Older
Jeongseok Lee's avatar
Jeongseok Lee committed
1
2
3
4
5
6
7
language: cpp

env:
  - BUILD_TYPE=Debug
  - BUILD_TYPE=Release

matrix:
8
9
  include:
    - dist: trusty
Jeongseok Lee's avatar
Jeongseok Lee committed
10
      compiler: gcc
11
12
13
14
15
16
    - dist: xenial
      compiler: gcc
    - dist: xenial
      compiler: clang
    - os: osx
      compiler: clang
Jeongseok Lee's avatar
Jeongseok Lee committed
17
18
19
20
21
22
23
24
25

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
26
  - cd build
Jeongseok Lee's avatar
Jeongseok Lee committed
27
28

  # Configure
jcarpent's avatar
jcarpent committed
29
  - cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_CXX_FLAGS=-w ..
Jeongseok Lee's avatar
Jeongseok Lee committed
30
31
32
33
34
35
36

  # Build
  - make -j4

  # Run unit tests
  - make test

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