.travis.yml 2.13 KB
Newer Older
Jeongseok Lee's avatar
Jeongseok Lee committed
1
2
3
language: cpp

env:
4
5
  global:
    - CTEST_PARALLEL_LEVEL=4
6
7
    - CTEST_OUTPUT_ON_FAILURE=1
    - CXX_FLAGS_DEBUG="-O1"
8
    - BUILD_PYTHON_INTERFACE=ON
9
    - MAKEFLAGS="-j2"
Jeongseok Lee's avatar
Jeongseok Lee committed
10

Joseph Mirabel's avatar
Joseph Mirabel committed
11
12
13
cache:
  ccache: true

Jeongseok Lee's avatar
Jeongseok Lee committed
14
matrix:
15
  include:
16
    - name: "Trusty - Release - g++"
17
      env: BUILD_TYPE=Release
18
19
      dist: trusty
      compiler: g++
Joseph Mirabel's avatar
Joseph Mirabel committed
20
21
22
23
24
25
26
      addons:
        apt:
          packages:
            - cmake
            - libboost-all-dev
            - libassimp-dev
            - libeigen3-dev
27
28
29
30
31

    - name: "Xenial - Release - g++"
      env: BUILD_TYPE=Release
      dist: xenial
      compiler: g++
Joseph Mirabel's avatar
Joseph Mirabel committed
32
33
34
      addons:
        apt:
          packages:
Joseph Mirabel's avatar
Joseph Mirabel committed
35
36
37
38
            - cmake
            - libboost-all-dev
            - libassimp-dev
            - libeigen3-dev
Joseph Mirabel's avatar
Joseph Mirabel committed
39
            - liboctomap-dev
40
41

    - name: "Bionic - Release - g++"
42
      env: BUILD_TYPE=Release
43
44
      dist: bionic
      compiler: g++
Joseph Mirabel's avatar
Joseph Mirabel committed
45
46
47
      addons:
        apt:
          packages:
Joseph Mirabel's avatar
Joseph Mirabel committed
48
49
50
51
            - cmake
            - libboost-all-dev
            - libassimp-dev
            - libeigen3-dev
Joseph Mirabel's avatar
Joseph Mirabel committed
52
            - liboctomap-dev
53
54
55

    - name: "Bionic - Debug - g++"
      env: BUILD_TYPE=Debug
56
      dist: bionic
57
      compiler: g++
Joseph Mirabel's avatar
Joseph Mirabel committed
58
59
60
      addons:
        apt:
          packages:
Joseph Mirabel's avatar
Joseph Mirabel committed
61
62
63
64
            - cmake
            - libboost-all-dev
            - libassimp-dev
            - libeigen3-dev
Joseph Mirabel's avatar
Joseph Mirabel committed
65
            - liboctomap-dev
66

67
    - name: "OSX - Release - clang"
68
      env: BUILD_TYPE=Release
69
      os: osx
70
      compiler: clang
Joseph Mirabel's avatar
Joseph Mirabel committed
71
72
73
74
      cache:
        ccache: true
        directories:
          - $HOME/Library/Caches/Homebrew
Jeongseok Lee's avatar
Jeongseok Lee committed
75

76
before_install:
Gabriele Buondonno's avatar
Gabriele Buondonno committed
77
  - if [ "$TRAVIS_OS_NAME" = "linux" ]; then source travis_custom/custom_before_install_linux.sh ; fi
Joseph Mirabel's avatar
Joseph Mirabel committed
78
  - if [ "$TRAVIS_OS_NAME" = "osx"   ]; then source travis_custom/custom_before_install_osx.sh   ; fi
79

Jeongseok Lee's avatar
Jeongseok Lee committed
80
81
82
script:
  # Create build directory
  - mkdir build
83
  - cd build
Jeongseok Lee's avatar
Jeongseok Lee committed
84
85

  # Configure
86
  - 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
87
88

  # Build
89
  - make
Jeongseok Lee's avatar
Jeongseok Lee committed
90
91

  # Run unit tests
92
  - travis_wait 30 make test
Jeongseok Lee's avatar
Jeongseok Lee committed
93

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