-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
38 lines (33 loc) · 953 Bytes
/
.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
language: cpp
sudo: true
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake
- libboost-all-dev
- libopencv-dev
- libeigen3-dev
- libpng12-dev
- g++-4.9 # support for regex
env:
- MATRIX_EVAL="export CC=gcc-4.9 && export CXX=g++-4.9
before_install:
- eval "${MATRIX_EVAL}" # Does not work for the moment
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; if ! [[ `brew ls --versions boost` ]]; then brew install boost; fi; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if ! [[ `brew ls --versions gcc` ]]; then brew install gcc; fi; fi
- gcc --version
- g++ --version
- clang --version
- clang++ --version
script:
- mkdir -p build
- cd build
- CC=gcc-4.9 CXX=g++-4.9 cmake -DCMAKE_VERBOSE_MAKEFILE=ON ..
- make
- ../run_tests.sh
- ./app/mousetrack