This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (57 loc) · 1.84 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
58
59
60
61
62
63
64
65
66
67
68
69
language: cpp
os:
- linux
compiler:
- gcc
- clang
env:
global:
- secure: "ANVKlxG5kUtHRoiq94/XObDk6OmV7/LJKxv8mgQ0xY9vt7hx9bGHqu6XYOC8bZAM3p3AEOzPquSnNeNvxG2OQN+CsXCXtwhjcYtZ4x19+V4LAbv4Q90NScvnuq0IJ9WgoKNehYArihh8UlCimLnKnO0KHCBu0DEPaMT7rgn10Ag="
matrix:
- TRAVIS_BUILD_TYPE=Debug
- TRAVIS_BUILD_TYPE=Release
cache: apt
install:
# Store root directory
- export TRAV_ROOT=$(pwd)/..
# Store project root
- export PROJ_ROOT=$(pwd)
# Install icub
- sudo sh -c 'echo "deb http://www.icub.org/ubuntu precise contrib/science" > /etc/apt/sources.list.d/icub.list'
- sudo apt-get update
- sudo apt-get --force-yes install icub
# Install icub-contrib
- export ICUBcontrib_DIR=$TRAV_ROOT/iCubContrib
- cd $TRAV_ROOT
# - svn co https://svn.code.sf.net/p/robotcub/code/trunk/iCub/contrib/src/ICUBcontrib icub-contrib/src/ICUBcontrib
- git clone https://github.com/robotology/icub-contrib-common.git
- cd icub-contrib-common
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=$ICUBcontrib_DIR
- make
- sudo make install
- cd $TRAV_ROOT
# Install doxygen
# - sudo apt-get --force-yes install doxygen
- wget http://mirrors.kernel.org/ubuntu/pool/main/d/doxygen/doxygen_1.8.4-1_amd64.deb
- sudo dpkg -i ./doxygen_1.8.4-1_amd64.deb
- sudo apt-get -f install
before_script:
- cd $PROJ_ROOT
- cmake --version
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE}
script:
# Build project
- make
- sudo make install
after_success:
# Create doxygen documentation
- cd $PROJ_ROOT
- doxygen conf/Doxyfile > /dev/null
# Publish doxygen documentation
- cd $PROJ_ROOT
- chmod -R 744 .travis
- .travis/push-doxygen-to-gh-pages.sh