-
Notifications
You must be signed in to change notification settings - Fork 922
Expand file tree
/
Copy path.travis.yml
More file actions
57 lines (52 loc) · 1.32 KB
/
Copy path.travis.yml
File metadata and controls
57 lines (52 loc) · 1.32 KB
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
# no xenial support from travis yet...
dist: trusty
sudo: enabled
language: cpp
cache: ccache
# get c++14 compatible gcc version
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- g++-5
# See: https://docs.travis-ci.com/user/languages/c/
# We don't include clang builds, since there are issues
# with C++11/14 and libc++ on Trusty, e.g. when including
# OpenCV headers.
matrix:
include:
- compiler: gcc
os: linux
env:
- BUILD_TYPE=Release
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
- compiler: gcc
os: linux
env:
- BUILD_TYPE=Debug
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
- compiler: clang
os: osx
env: BUILD_TYPE=Release
# For now only run on xcode8.3, which is the default image, since OSX testing on Travis can take a long time.
# osx_image: xcode8.3
# - compiler: clang
# os: osx
# env: BUILD_TYPE=Release
# osx_image: xcode7.3
env:
global:
- MAKEFLAGS="-j 2"
before_install:
- eval "${MATRIX_EVAL}"
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then scripts/ci-install-linux-deps.sh ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then scripts/ci-install-osx-deps.sh ; fi
script:
- mkdir build
- cd build
- cmake -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
- make
- sudo make install
# - make test