forked from rbdl/rbdl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (37 loc) · 1.06 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
language: cpp
os: linux
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake-data
- cmake
- libunittest++-dev
- libeigen3-dev
jobs:
include:
- name: "SimpleMath - gcc"
env: CMAKE_DEFINES="-DRBDL_USE_SIMPLE_MATH=ON -DRBDL_BUILD_TESTS=ON -DRBDL_BUILD_ADDON_BENCHMARK=ON"
compiler: gcc
- name: "SimpleMath - clang"
env: CMAKE_DEFINES="-DRBDL_USE_SIMPLE_MATH=ON -DRBDL_BUILD_TESTS=ON -DRBDL_BUILD_ADDON_BENCHMARK=ON"
compiler: clang
- name: "EigenMath - gcc"
env: CMAKE_DEFINES="-DRBDL_USE_SIMPLE_MATH=OFF -DRBDL_BUILD_TESTS=ON -DRBDL_BUILD_ADDON_BENCHMARK=ON"
compiler: gcc
- name: "EigenMath - clang"
env: CMAKE_DEFINES="-DRBDL_USE_SIMPLE_MATH=OFF -DRBDL_BUILD_TESTS=ON -DRBDL_BUILD_ADDON_BENCHMARK=ON"
compiler: clang
before_script:
- mkdir build
- cd build
- cmake -L -DCMAKE_CXX_FLAGS="-Wall -Wpedantic -Wextra -Werror" $CMAKE_DEFINES ..
script:
# Compile RBDL
- make
# Run unit tests
- ./tests/runtests
# Run benchmarks
- ./addons/benchmark/benchmark