forked from asrob-uc3m/robotDevastation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
125 lines (108 loc) · 3.22 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# Authors: see AUTHORS.md at project root.
# CopyPolicy: released under the terms of the LGPLv2.1, see LICENSE at project root.
# URL: https://github.com/asrob-uc3m/robotDevastation
language: cpp
dist: bionic
os: linux
compiler:
- gcc
- clang
env:
global:
- SDL_AUDIODRIVER=dummy # avoid ALSA errors
- CACHE_DIR=~/cached-deps # common cache location
- YCM_CHECKOUT=ycm-0.13
jobs:
- YARP_CHECKOUT=yarp-3.6
- YARP_CHECKOUT=yarp-3.5
jobs:
include:
- if: type = cron
compiler: gcc
env: ROBOTOLOGY_CHECKOUT=master
- if: type = cron
compiler: clang
env: ROBOTOLOGY_CHECKOUT=master
cache:
directories: $CACHE_DIR
addons:
apt:
packages:
- libjpeg-dev
- libsdl2-dev
- libsdl2-image-dev
- libsdl2-mixer-dev
- libsdl2-ttf-dev
- libzbar-dev
- libgtest-dev
- lcov
- doxygen
services:
- xvfb
branches:
except:
- /^.*appveyor.*$/
before_install:
#-- Code coverage
- if [ "$CXX" = "g++" ]; then gem install coveralls-lcov; fi
install:
#-- Install YCM
- >
source "$TRAVIS_BUILD_DIR/scripts/travis/git-cache-dependency.sh"
--package-name YCM
--repo-url https://github.com/robotology/ycm
--repo-checkout "${ROBOTOLOGY_CHECKOUT:-$YCM_CHECKOUT}"
#-- Install YARP
- >
source "$TRAVIS_BUILD_DIR/scripts/travis/git-cache-dependency.sh"
--package-name YARP
--repo-url https://github.com/robotology/yarp
--repo-checkout "${ROBOTOLOGY_CHECKOUT:-$YARP_CHECKOUT}"
--additional-cmake-options "-DSKIP_ACE:BOOL=ON -DCREATE_OPTIONAL_CARRIERS:BOOL=ON -DENABLE_yarpcar_mjpeg:BOOL=ON"
--prepend-to-linker-path lib
--additional-export-paths "YARP_DATA_DIRS;share/yarp"
#-- Install yarp-devices
- >
source "$TRAVIS_BUILD_DIR/scripts/travis/git-cache-dependency.sh"
--package-name ROBOTICSLAB_YARP_DEVICES
--repo-url https://github.com/asrob-uc3m/yarp-devices
--repo-checkout master
--additional-export-paths "YARP_DATA_DIRS;share/asrob-yarp-devices"
before_script:
- mkdir -p "$TRAVIS_BUILD_DIR/build" && cd "$_"
- cmake .. -DCMAKE_INSTALL_PREFIX:PATH="$PWD/install" -DENABLE_coverage:BOOL=ON
- cmake --build . --target install
- export YARP_DATA_DIRS=$PWD/install/share/rd:$YARP_DATA_DIRS
script:
- bin/testDeadState
- bin/testFSMBuilder
- bin/testFSM
- bin/testGameState
- bin/testInitState
- bin/testMentalMap
- bin/testMockAudioManager
- bin/testMockInputManager
- bin/testMockRobotManager
- bin/testProcessorImageEventListener
- bin/testYarpNetworkManager
- bin/testSDLAudioManager
- bin/testRobotDevastation
after_success:
#-- Code coverage
- if [ "$CXX" = "g++" ]; then source "$TRAVIS_BUILD_DIR/scripts/travis/coverage.sh"; fi
before_deploy:
- cmake .. -DGENERATE_doc_html:BOOL=ON
- cmake --build . --target dox
- cmake --build . --target install
- cd install
- tar -zcvf robotDevastation_travis-${TRAVIS_BUILD_NUMBER}_trusty_x64.tar.gz *
deploy:
provider: releases
api_key:
secure: DORjZTWdhauq/l3s+pQj0ywjtkKxb00YNy9Tj3RH5+4I8/aRF2u6nFP61tnLUEEzz6GcEDp/lyIOtbuOI+hKO2M4Nq2stI++8FNvPjA8sdmNGXm3w2yIQFY+wFwZyLcn9y3l/7I8FeiQnfFk47/vHfy5DrdsqOr3Z6Ub7xINpKM=
file_glob: true
file: '*.tar.gz'
skip_cleanup: true
on:
tags: true
condition: $CXX = g++