.travis.yml 669 Bytes
Newer Older
Jeongseok Lee's avatar
Jeongseok Lee committed
1
language: cpp
Valenza Florian's avatar
Valenza Florian committed
2
sudo: required
Jeongseok Lee's avatar
Jeongseok Lee committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

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
  - cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..

  # Build
  - make -j4

  # Run unit tests
  - make test

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