forked from robotology/robotology-superbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
115 lines (101 loc) · 2.77 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
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
- clang
env:
global:
- TRAVIS_CMAKE_GENERATOR="Unix Makefiles"
matrix:
- TRAVIS_BUILD_TYPE="Release" UBUNTU="xenial", ROBOTOLOGY_ENABLE_DYNAMICS=TRUE
- TRAVIS_BUILD_TYPE="Debug" UBUNTU="xenial", ROBOTOLOGY_ENABLE_DYNAMICS=TRUE
- TRAVIS_BUILD_TYPE="Release" UBUNTU="bionic", ROBOTOLOGY_ENABLE_DYNAMICS=TRUE
- TRAVIS_BUILD_TYPE="Debug" UBUNTU="bionic", ROBOTOLOGY_ENABLE_DYNAMICS=TRUE
# ===================
# 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 \
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"
- export ROBOTOLOGY_ENABLE_DYNAMICS=FALSE
# Install dependencies available from Homebrew/core
- brew install ace asio eigen boost tinyxml swig qt5 gsl pkg-config jpeg sqlite tinyxml
- export Qt5_DIR=/usr/local/opt/qt5/lib/cmake/Qt5
# Workaround for https://github.com/travis-ci/travis-ci/issues/8826
- brew cask uninstall oclint
# Install Gazebo
- brew tap osrf/simulation
- brew install gazebo9
# Install beautifier for Xcode output
- gem install xcpretty-travis-formatter
script: &osx_script
- cd $TRAVIS_BUILD_DIR/.ci
- sh -c 'sh ./script.sh'
script: &osx_script_xcode
- cd $TRAVIS_BUILD_DIR/.ci
- sh -c 'sh ./script.sh | xcpretty -f `xcpretty-travis-formatter`'
# ======================
# BUILD JOBS FROM STAGES
# ======================
jobs:
include:
# ---------
# STAGE OSX
# ---------
- &osx_template
stage: osx
os: osx
osx_image: xcode9.4
before_install: skip
install: *osx_install
before_script: skip
script: *osx_script_xcode
after_failure: skip
after_success: skip
after_script: skip
env:
TRAVIS_CMAKE_GENERATOR="Xcode"
TRAVIS_BUILD_TYPE="Debug"
# Disabled for now
# - <<: *osx_template
# script: *osx_script
# compiler: clang
# env:
# TRAVIS_CMAKE_GENERATOR="Unix Makefiles"
# TRAVIS_BUILD_TYPE="Debug"
notifications:
email:
# CORE, DYNAMICS mantainer
# IHMC mantainer