-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
40 lines (35 loc) · 1.24 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
sudo: required
dist: trusty
language: cpp
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 ..
# use superbuild for getting codyco-modules dependencies
- git clone https://github.com/robotology/codyco-superbuild
- cd codyco-superbuild
- pwd
# install dependencies using the codyco-superbuild script
- chmod +x ./.ci/travis-deps.sh
- sh .ci/travis-deps.sh
- mkdir build
- cd build
# using the YCM_EP_MAINTAINER_MODE variable to enable the subproject-dependees target
- cmake -G"${TRAVIS_CMAKE_GENERATOR}" -DCODYCO_TRAVIS_CI:BOOL=ON -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE} -DYCM_EP_MAINTAINER_MODE:BOOL=ON -DNON_INTERACTIVE_BUILD:BOOL=TRUE ..
- make codycoCommons-dependees
- export CMAKE_PREFIX_PATH=/home/travis/build/robotology-playground/codyco-superbuild/build/install
- cd ../..
# go back to codyco-commons
- cd codyco-commons
script:
- mkdir build
- cd build
- cmake -DCODYCO_TRAVIS_CI:BOOL=ON -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE} -DNON_INTERACTIVE_BUILD:BOOL=TRUE ..
- cmake --build . --config ${TRAVIS_BUILD_TYPE}
notifications:
email: