forked from robocomp/robocomp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (30 loc) · 1.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
---
sudo: required
dist: bionic
language: cpp
matrix:
include:
- compiler: gcc
env: COMPILER=g++-7
before_install:
# Added zeroc Ice 3.6 repository
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 5E6DA83306132997
- sudo apt-add-repository "deb http://zeroc.com/download/Ice/3.6/ubuntu16.04 stable main"
# Added to have g++-7 available. Needed because of the use of std::variant
- sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
- sudo apt-get install -y software-properties-common
- sudo apt install -y g++-7
# Moved packages installation from travis addons.apt.packages to here because other way we don't get failures on installation
- sudo apt-get install -y git git-annex cmake g++ libgsl-dev libopenscenegraph-dev cmake-qt-gui zeroc-ice-all-dev freeglut3-dev libboost-system-dev libboost-thread-dev qt4-dev-tools libqt4-opengl-dev python-pip python-pyparsing python-numpy python-pyside pyside-tools libxt-dev libboost-test-dev libboost-filesystem-dev python-libxml2 python-xmltodict libccd-dev python-zeroc-ice zeroc-ice-all-runtime
- sudo apt-get install -y libfcl-dev
# Commands to try and fix check failures
# - sudo rm /var/lib/apt/lists/lock
# - sudo rm /var/cache/apt/archives/lock
# - sudo rm /var/lib/dpkg/lock
script:
- export ROBOCOMP="/home/travis/build/robocomp/robocomp"
# Added -DCMAKE_CXX_FLAGS=-fext-numeric-literals flag to avoid errors on boost numeric operator.
# TO COMPILE WITH FCL uncomment this line and comment the next one
# - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_CXX_FLAGS=-fext-numeric-literals -DFCL_SUPPORT=1 . && make
- cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_CXX_STANDARD_LIBRARIES="-lIce++11.so" -DCMAKE_CXX_FLAGS="-std=gnu++11 -fext-numeric-literals -DICE_CPP11_MAPPING" . && make