-
Notifications
You must be signed in to change notification settings - Fork 248
/
.travis.yml
30 lines (25 loc) · 1.18 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
sudo: required
dist: trusty
language: cpp
env:
- C_COMPILER=gcc-4.9 CXX_COMPILER=g++-4.9
- C_COMPILER=gcc-5 CXX_COMPILER=g++-5
- C_COMPILER=clang-3.6 CXX_COMPILER=clang++-3.6
- C_COMPILER=clang-3.7 CXX_COMPILER=clang++-3.7
- C_COMPILER=clang-3.8 CXX_COMPILER=clang++-3.8
before_install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
- echo "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.6 main" | sudo tee -a /etc/apt/sources.list
- echo "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.7 main" | sudo tee -a /etc/apt/sources.list
- echo "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.8 main" | sudo tee -a /etc/apt/sources.list
- sudo apt-get update -q
- sudo apt-get install gcc-4.9 g++-4.9 gcc-5 g++-5 -y
- sudo apt-get install clang-3.6 clang-3.7 clang-3.8 -y
- sudo apt-get install libboost-all-dev libeigen3-dev libopencv-dev opencv-data -y
before_script:
- mkdir build
- cd build
- cmake -DOpenCV_haarcascades_DIR=/usr/share/opencv/haarcascades/ -DCMAKE_C_COMPILER=${C_COMPILER} -DCMAKE_CXX_COMPILER=${CXX_COMPILER} ..
script:
- make VERBOSE=1