forked from robotology/idyntree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
108 lines (94 loc) · 2.48 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
dist: trusty
language: cpp
services: docker
os: linux
cache:
directories:
- $HOME/.ccache
- $HOME/Library/Caches/Homebrew
stages:
- test # Default stage with job matrix
- osx
compiler:
- gcc
env:
global:
- TRAVIS_CMAKE_GENERATOR="Unix Makefiles"
matrix:
- TRAVIS_BUILD_TYPE="Release" UBUNTU="xenial" VALGRIND_TESTS="ON" COMPILE_BINDINGS="ON" FULL_DEPS="ON"
- TRAVIS_BUILD_TYPE="Debug" UBUNTU="xenial" VALGRIND_TESTS="OFF" COMPILE_BINDINGS="ON" FULL_DEPS="ON"
- TRAVIS_BUILD_TYPE="Release" UBUNTU="bionic" VALGRIND_TESTS="OFF" COMPILE_BINDINGS="ON" FULL_DEPS="ON"
- TRAVIS_BUILD_TYPE="Debug" UBUNTU="bionic" VALGRIND_TESTS="OFF" COMPILE_BINDINGS="ON" FULL_DEPS="ON"
# ===================
# STAGE: test (linux)
# ===================
before_script:
- docker pull ubuntu:$UBUNTU
script:
- >-
docker run -it \
-v $TRAVIS_BUILD_DIR:$TRAVIS_BUILD_DIR \
-v $HOME/.ccache:$HOME/.ccache \
-w $TRAVIS_BUILD_DIR \
--env CC \
--env CXX \
--env TRAVIS_BUILD_DIR \
--env TRAVIS_BUILD_TYPE \
--env TRAVIS_CMAKE_GENERATOR \
--env VALGRIND_TESTS \
--env COMPILE_BINDINGS \
--env FULL_DEPS \
ubuntu:$UBUNTU \
sh .ci/install_debian_and_script.sh
# ==========
# STAGE: osx
# ==========
stage_osx:
install: &osx_install
# Setup ccache
- brew update
- brew install ccache
- export PATH="/usr/local/opt/ccache/libexec:$PATH"
# Install dependencies
- brew install ace eigen tinyxml swig qt5 gsl pkg-config jpeg tinyxml
- export Qt5_DIR=/usr/local/opt/qt5/lib/cmake/Qt5
script: &osx_script
- cd $TRAVIS_BUILD_DIR/.ci
- sh ./script.sh
# ======================
# BUILD JOBS FROM STAGES
# ======================
jobs:
include:
# ---------
# STAGE OSX
# ---------
- &osx_template
stage: osx
os: osx
services:
osx_image: xcode9.4
before_install: skip
install: *osx_install
before_script: skip
script: *osx_script
after_failure: skip
after_success: skip
after_script: skip
env:
TRAVIS_CMAKE_GENERATOR="Xcode"
TRAVIS_BUILD_TYPE="Debug"
VALGRIND_TESTS="OFF"
COMPILE_BINDINGS="OFF"
FULL_DEPS="OFF"
- <<: *osx_template
compiler: clang
env:
TRAVIS_CMAKE_GENERATOR="Unix Makefiles"
TRAVIS_BUILD_TYPE="Debug"
VALGRIND_TESTS="OFF"
COMPILE_BINDINGS="OFF"
FULL_DEPS="OFF"
notifications:
email:
- pegua1@gmail.com