-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
77 lines (63 loc) · 1.92 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
70
71
72
73
74
75
76
77
language: cpp
os:
- linux
compiler:
- gcc
- clang
env:
global:
- secure: "F2HBr2aEF58l0cGR3E4FJ6loeklhxPtGjkJNQM4r02No21LyrSeoBmPdUUOu/ZfPbuyPRz28PbNQkoCJFucBFo/9MjZ/Jpld/WWrJyP5QG1hjcJbW5r+UpodG6WYIES8IqG/2iYMaCXFsLK8hfpPO5x1i8vdQX5vHbfMFNub1Sc="
matrix:
- TRAVIS_BUILD_TYPE=Debug
- TRAVIS_BUILD_TYPE=Release
matrix:
allow_failures:
- os: linux
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
- 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 NIDAQmx library
- cd $PROJ_ROOT
- chmod -R 744 .nidaqmx/copy-nidaqmx-to-root.sh
- .nidaqmx/copy-nidaqmx-to-root.sh
# 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