-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
52 lines (52 loc) · 1.35 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
language: cpp
compiler:
- clang
- gcc
os:
- osx
- linux
env:
matrix:
- CONFIG=Release
- CONFIG=Debug
global:
secure: A1Mnl+ArpPh1SzES6xbE9BqgyLW0HwHwDcnEGyqRbVKYiEXbPiiVotOZ9VUI+BmJYKo45MQ+rKQNYB+nDvecLm+33y4JGyfXtFcloM6Qmvp2gSxOPrm0xenr4xIc6Ewp2aqTY3x91DZYhTQ7nCTsg74Ih1jwJmyY3VHQMVCjRSI=
matrix:
exclude:
- os: osx
compiler: gcc
before_install:
- if [ $CC = gcc ]; then export CXX="g++-5" CC="gcc-5"; fi
- if [ $TRAVIS_OS_NAME = 'linux' -a $CC = 'clang' ]; then export CXX="clang++-3.7"
CC="clang-3.7"; fi
- "$CC -v"
script:
- git submodule update --init --recursive
- mkdir build
- cd build
- if [ $TRAVIS_OS_NAME = 'osx' ]; then cmake .. -DCMAKE_BUILD_TYPE=${CONFIG} -DCMAKE_PREFIX_PATH=$INSTPRF
-DCMAKE_OSX_ARCHITECTURES=x86_64; fi
- if [ $TRAVIS_OS_NAME = 'linux' ]; then cmake .. -DCMAKE_BUILD_TYPE=${CONFIG} -DCMAKE_PREFIX_PATH=$INSTPRF;
fi
- make all -j2
sudo: false
addons:
apt:
sources:
- george-edison55-precise-backports
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.7
packages:
- cmake-data
- cmake
- gcc-5
- g++-5
- clang-3.7
coverity_scan:
project:
name: OSVR/libfunctionality
description: Build submitted via Travis CI
notification_email: [email protected]
build_command_prepend: cmake ..; make clean
build_command: make -j2
branch_pattern: coverity_scan