forked from bfierz/vcl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (60 loc) · 2.58 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
language: cpp
dist: xenial
sudo: required
branches:
only:
- master
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-3.9
- boost-latest
packages:
- clang-3.9
- g++-6
- libboost-all-dev
# Configuration matrix
env:
- compiler='g++-6' build_type='Debug' vec_type='SSE 2'
- compiler='g++-6' build_type='Debug' vec_type='SSE 3'
- compiler='g++-6' build_type='Debug' vec_type='SSE 4.1'
- compiler='g++-6' build_type='Debug' vec_type='SSE 4.2'
- compiler='g++-6' build_type='Debug' vec_type='AVX'
- compiler='g++-6' build_type='Release' vec_type='SSE 2'
- compiler='g++-6' build_type='Release' vec_type='SSE 3'
- compiler='g++-6' build_type='Release' vec_type='SSE 4.1'
- compiler='g++-6' build_type='Release' vec_type='SSE 4.2'
- compiler='g++-6' build_type='Release' vec_type='AVX'
- compiler='clang++-3.9' build_type='Debug' vec_type='SSE 2'
- compiler='clang++-3.9' build_type='Debug' vec_type='SSE 3'
- compiler='clang++-3.9' build_type='Debug' vec_type='SSE 4.1'
- compiler='clang++-3.9' build_type='Debug' vec_type='SSE 4.2'
- compiler='clang++-3.9' build_type='Debug' vec_type='AVX'
- compiler='clang++-3.9' build_type='Release' vec_type='SSE 2'
- compiler='clang++-3.9' build_type='Release' vec_type='SSE 3'
- compiler='clang++-3.9' build_type='Release' vec_type='SSE 4.1'
- compiler='clang++-3.9' build_type='Release' vec_type='SSE 4.2'
- compiler='clang++-3.9' build_type='Release' vec_type='AVX'
before_install:
- sudo apt-get install -y libglew-dev
install:
- curl -sSL https://github.com/Kitware/CMake/releases/download/v3.13.2/cmake-3.13.2-Linux-x86_64.tar.gz | sudo tar -xzC /opt
# Install latest LCOV
- wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.13.orig.tar.gz
- tar xf lcov_1.13.orig.tar.gz
- sudo make -C lcov-1.13/ install
# Install gcovr
- sudo pip install gcovr
- gcovr --version
before_script:
- if [ "$compiler" = "g++-6" ]; then export CXX="g++-6" CC="gcc-6"; fi
- if [ "$compiler" = "clang++-3.9" ]; then export CXX="clang++-3.9" CC="clang-3.9"; fi
# Update link to gcov
- sudo ln -sf /usr/bin/gcov-6 /usr/bin/gcov
- gcov --version
script:
- mkdir $CXX && cd $CXX
- /opt/cmake-3.13.2-Linux-x86_64/bin/cmake -DCMAKE_BUILD_TYPE=$build_type -DCMAKE_CXX_FLAGS="-Wall -Wextra -pedantic -Wno-parentheses" -DVCL_CODE_COVERAGE:BOOL=on -DVCL_BUILD_BENCHMARKS:BOOL=off -DVCL_BUILD_TESTS:BOOL=on -DVCL_BUILD_TOOLS:BOOL=off -DVCL_BUILD_EXAMPLES:BOOL=off -DVCL_VECTORIZE:STRING="$vec_type" ..
- ../ci/build.sh