forked from flexible-collision-library/fcl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (48 loc) · 1.31 KB
/
.travis.yml
1
2
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
sudo: required
dist: trusty
cache:
apt: true
language: cpp
matrix:
include:
- os: linux
compiler: gcc
env: BUILD_TYPE=Debug COVERALLS=ON
- os: linux
compiler: gcc
env: BUILD_TYPE=Release COVERALLS=OFF
- os: linux
compiler: clang
env: BUILD_TYPE=Debug COVERALLS=OFF
- os: linux
compiler: clang
env: BUILD_TYPE=Release COVERALLS=OFF
- os: osx
osx_image: xcode7.3
compiler: clang
env: BUILD_TYPE=Debug COVERALLS=OFF
- os: osx
osx_image: xcode7.3
compiler: clang
env: BUILD_TYPE=Release COVERALLS=OFF
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 -DFCL_TREAT_WARNINGS_AS_ERRORS=ON -DFCL_COVERALLS=$COVERALLS ..
# Build
- make -j4
- if [ $COVERALLS = ON ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then make coveralls; fi
# Run unit tests
- make test
# Make sure we can install and uninstall with no issues
- sudo make -j4 install
- sudo make -j4 uninstall
after_failure:
- cat Testing/Temporary/LastTest.log
- cat Testing/Temporary/LastTestsFailed.log