-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
50 lines (45 loc) · 1.38 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
sudo: required
dist: trusty
language: cpp
cache: ccache
compiler:
- gcc
- clang
env:
- TRAVIS_BUILD_TYPE=Debug, TRAVIS_CMAKE_GENERATOR="Unix Makefiles",
- TRAVIS_BUILD_TYPE=Release, TRAVIS_CMAKE_GENERATOR="Unix Makefiles",
before_script:
- cd ..
# Install system dependencies
- sudo apt install cmake3 libasio-dev libace-dev libeigen3-dev
# Install dependencies from source code
## YARP
- git clone https://github.com/robotology/yarp
- cd yarp
- mkdir build
- cd build
- cmake -G"${TRAVIS_CMAKE_GENERATOR}" -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE} -DCREATE_LIB_MATH=ON ..
- cmake --build . --config ${TRAVIS_BUILD_TYPE}
- sudo cmake --build . --config ${TRAVIS_BUILD_TYPE} --target install
- cd ../..
## fastcdr
- git clone https://github.com/eProsima/Fast-CDR
- cd Fast-CDR
- mkdir build
- cd build
- cmake -G"${TRAVIS_CMAKE_GENERATOR}" -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE} ..
- cmake --build . --config ${TRAVIS_BUILD_TYPE}
- sudo cmake --build . --config ${TRAVIS_BUILD_TYPE} --target install
- cd ../..
##
- cd ihmc-ors-yarp
script:
- mkdir build
- cd build
- cmake -G"${TRAVIS_CMAKE_GENERATOR}" -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE} ..
- cmake --build . --config ${TRAVIS_BUILD_TYPE}
- sudo cmake --build . --config ${TRAVIS_BUILD_TYPE} --target install
notifications:
email: