forked from vojirt/kcf
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
51 lines (47 loc) · 1.62 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
language: c++
dist: xenial
addons:
apt:
sources: &common_sources
- sourceline: deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 /
key_url: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
- ubuntu-toolchain-r-test
packages: &common_packages
- cmake
- ninja-build
- libopencv-dev
- libfftw3-dev
env:
- CUDA_BIN_PATH=/usr/local/cuda-8.0 CXXFLAGS=-Werror CUDA_ARCH_LIST=6.2 NINJA_STATUS="[%f/%t] "
script: make
matrix:
include:
- compiler: gcc
addons:
apt:
sources: *common_sources
packages:
- *common_packages
- cuda-command-line-tools-8-0 cuda-cufft-dev-8-0 cuda-cublas-dev-8-0
script: make CC=gcc CXX=g++
- compiler: clang-3.8
addons:
apt:
sources: *common_sources
packages:
- *common_packages
- clang-3.8
- cuda-command-line-tools-8-0 cuda-cufft-dev-8-0 cuda-cublas-dev-8-0
script: make CC=clang-3.8 CXX=clang++-3.8 $(make print_BUILDS|grep -v openmp)
- compiler: clang
name: clang & test
env:
- OMP_NUM_THREADS=4 # See https://docs.travis-ci.com/user/languages/c/#openmp-projects
script:
- make BUILDS="$(make print_BUILDS|grep -v cufft|paste -s)"
- LD_LIBRARY_PATH=/usr/local/clang-7.0.0/lib/ LD_PRELOAD=libSegFault.so SEGFAULT_SIGNALS=all ninja test
addons:
apt: { sources: *common_sources, packages: [*common_packages, unzip] }
before_cache: rm -f vot2016/*/{output.txt,core}
cache:
directories: [ vot2016 ]