This repository has been archived by the owner on Apr 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
54 lines (47 loc) · 1.82 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
sudo: required
dist: trusty
language: cpp
compiler:
- gcc
- clang
env:
# set the CMAKE_PREFIX_PATH enviroment variable to get software installed by the superbuild
- TRAVIS_BUILD_TYPE=Debug, TRAVIS_CMAKE_GENERATOR="Unix Makefiles", CMAKE_PREFIX_PATH="/home/travis/build/robotology/codyco-superbuild/build/install"
- TRAVIS_BUILD_TYPE=Release, TRAVIS_CMAKE_GENERATOR="Unix Makefiles", CMAKE_PREFIX_PATH="/home/travis/build/robotology/codyco-superbuild/build/install"
matrix:
allow_failures:
- compiler: clang
install:
# install dependencies using the codyco-superbuild script
- cd ..
- git clone https://github.com/robotology/codyco-superbuild
- cd codyco-superbuild
- chmod +x ./.ci/travis-deps.sh
- sh .ci/travis-deps.sh
before_script:
- cmake --version
# use superbuild for getting paramHelp dependencies
- mkdir build
- cd build
# using the YCM_EP_MAINTAINER_MODE variable to enable the subproject-dependees target
- cmake -G"${TRAVIS_CMAKE_GENERATOR}" -DSTANDARD_FIND_MODULE_DEBUG:BOOL=ON -DCODYCO_TRAVIS_CI:BOOL=ON -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE} -DYCM_EP_MAINTAINER_MODE:BOOL=ON -DNON_INTERACTIVE_BUILD:BOOL=TRUE ..
- pwd
- cd ../..
# Prepare wholeBodyInterface build
- cd wholebodyinterface
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=-DWHOLEBODYINTERFACE_BUILD_TESTS:BOOL=ON -DSTANDARD_FIND_MODULE_DEBUG:BOOL=ON ..
script:
# make, install and test
- make
- sudo make install
- ls -1 $CMAKE_PREFIX_PATH > filesBeforeInstall.txt
- ctest -V
# uninstall and test that uninstall works correctly
- sudo make uninstall
- ls -1 $CMAKE_PREFIX_PATH > filesAfterInstall.txt
- if [ -n "`diff -q filesBeforeInstall.txt filesBeforeInstall.txt | grep differ`" ]; then echo "uninstall error"; else echo "uninstall successful"; fi
notifications:
email:
- pegua1@gmail.com