Skip to content

Commit

Permalink
Merge branch 'travis-include-jobs' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBowman committed Jun 23, 2018
2 parents 8c82f75 + d52434c commit 0f02e00
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,27 @@ compiler:
- gcc
- clang

env:
- YARP_CHECKOUT=master
- YARP_CHECKOUT=v2.3.72.1
- YARP_CHECKOUT=v2.3.70.2

matrix:
include:
- if: type = cron
compiler: gcc
env: ROBOTOLOGY_CHECKOUT=devel
- if: type = cron
compiler: clang
env: ROBOTOLOGY_CHECKOUT=devel

before_install:
- sudo apt-get -qq update

#-- Configure Git (needed by YCM)
- if [ ! `git config --get user.email` ]; then `git config --global user.email '[email protected]'`; fi
- if [ ! `git config --get user.name` ]; then `git config --global user.name 'Travis CI'`; fi

#-- Set YARP branch on cron jobs
- '[[ "$TRAVIS_EVENT_TYPE" = cron ]] && export ROBOTOLOGY_CHECKOUT=devel || export ROBOTOLOGY_CHECKOUT=master'

#-- Register SSH deploy key for AMOR API private repository
#-- https://gist.github.com/lukewpatterson/4242707#gistcomment-2382443
#-- http://anil.recoil.org/2013/10/06/travis-secure-ssh-integration.html
Expand All @@ -34,15 +45,15 @@ install:
- sudo apt-get install libboost-thread-dev libeigen3-dev libgtest-dev

#-- Install YCM
- git clone --branch="$ROBOTOLOGY_CHECKOUT" https://github.com/robotology/ycm
- git clone --branch="${ROBOTOLOGY_CHECKOUT:-${YCM_CHECKOUT:-master}}" https://github.com/robotology/ycm
- cd ycm && mkdir build && cd build
- cmake ..
- make -j$(nproc)
- sudo make install
- cd ../..

#-- Install YARP
- git clone --branch="$ROBOTOLOGY_CHECKOUT" https://github.com/robotology/yarp
- git clone --branch="${ROBOTOLOGY_CHECKOUT:-$YARP_CHECKOUT}" https://github.com/robotology/yarp
- cd yarp && mkdir build && cd build
- cmake .. -DSKIP_ACE=ON -DCREATE_LIB_MATH=ON
- make -j$(nproc)
Expand Down

0 comments on commit 0f02e00

Please sign in to comment.