-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
48 lines (41 loc) · 1.32 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
sudo: required
dist: trusty
os:
- linux
- osx
language: c++
compiler:
- gcc
- clang
env:
- TRAVIS_BUILD_TYPE=Debug TRAVIS_CMAKE_GENERATOR="Unix Makefiles"
- TRAVIS_BUILD_TYPE=Release TRAVIS_CMAKE_GENERATOR="Unix Makefiles"
- TRAVIS_BUILD_TYPE=Debug TRAVIS_CMAKE_GENERATOR="Xcode"
- TRAVIS_BUILD_TYPE=Release TRAVIS_CMAKE_GENERATOR="Xcode"
matrix:
exclude:
- os: linux
env: TRAVIS_BUILD_TYPE=Release TRAVIS_CMAKE_GENERATOR="Xcode"
- os: linux
env: TRAVIS_BUILD_TYPE=Debug TRAVIS_CMAKE_GENERATOR="Xcode"
branches:
except:
- gh-pages
- appveyor
- reorganize
# whitelist
branches:
only:
- master
- dev
install:
- CI_DIR=$PWD
- git clone https://github.com/robotology/codyco-superbuild.git
- cd codyco-superbuild
- if [ "$TRAVIS_OS_NAME" = linux -o -z "$TRAVIS_OS_NAME" ]; then sed -i 's/install -qq/install -y -qq/g' .ci/travis-deps.sh ; fi
- if [ "$TRAVIS_OS_NAME" = linux -o -z "$TRAVIS_OS_NAME" ]; then sed -i 's/apt-get --force-yes/apt-get -y -qq --force-yes/g' .ci/travis-deps.sh ; fi
- sh .ci/travis-deps.sh
- mkdir build ; cd build
- cmake -G"${TRAVIS_CMAKE_GENERATOR}" -DCODYCO_BUILD_OCRA_MODULES:BOOL=TRUE -DCODYCO_TRAVIS_CI:BOOL=ON -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE} -DNON_INTERACTIVE_BUILD:BOOL=TRUE ..
script:
- sh ../.ci/travis-build.sh