-
Notifications
You must be signed in to change notification settings - Fork 82
/
.travis.yml
70 lines (64 loc) · 1.81 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
language: cpp
dist: xenial
env:
global:
- OMP_NUM_THREADS=4
- BOOST_BASENAME=boost_1_67_0
- AMDAPPSDKROOT=/opt/intel/opencl/
matrix:
include:
- compiler: gcc
env: VEXCL_BACKEND=OpenCL
before_install: &opencl_install
- source .travis/opencl_install.sh
- source .travis/install_boost.sh
- compiler: gcc
env: VEXCL_BACKEND=Compute
before_install: *opencl_install
- compiler: gcc
env: VEXCL_BACKEND=JIT
before_install: *opencl_install
- compiler: clang
env: VEXCL_BACKEND=OpenCL
before_install: *opencl_install
- compiler: clang
env: VEXCL_BACKEND=Compute
before_install: *opencl_install
- compiler: clang
env:
- VEXCL_BACKEND=JIT
- VEXCL_JIT_COMPILER_FLAGS=-stdlib=libc++
before_install: *opencl_install
- os: osx
env: VEXCL_BACKEND=OpenCL
- os: osx
env: VEXCL_BACKEND=Compute
- os: osx
env: VEXCL_BACKEND=JIT
addons:
apt:
packages:
- opencl-headers
- lcov
homebrew:
packages:
- boost
- libomp
- cmake
- lcov
cache:
directories:
- ${HOME}/${BOOST_BASENAME}/
script:
- cmake --version
- mkdir -p build && cd build
- cmake -DVEXCL_TEST_COVERAGE=ON -DVEXCL_BUILD_TESTS=ON -DVEXCL_BUILD_EXAMPLES=ON -DVEXCL_BACKEND=${VEXCL_BACKEND} -DVEXCL_JIT_COMPILER_FLAGS=${VEXCL_JIT_COMPILER_FLAGS} ..
- make -j2
- export CPATH=${CPATH}:${BOOST_ROOT}
- if [ "$VEXCL_BACKEND" = "JIT" ] && [ "$CC" = "clang" ] ; then export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$(dirname $(which clang++))/../lib ; fi
- ./examples/devlist
- ctest --output-on-failure
after_success:
- lcov --directory tests --base-directory ../vexcl --capture --output-file coverage.info
- lcov --remove coverage.info '/usr*' '*/cl.hpp' '*/boost/*' -o coverage.info
- bash <(curl -s https://codecov.io/bash)