forked from ddemidov/vexcl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (31 loc) · 1.25 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
language: cpp
compiler:
- gcc
- clang
env:
global:
- secure: "A5GuWMfy2tamED4Xq/h1hXSAX18qemLuhaX3mLD77VMv6Hx2ZPAPXXDuRwg+Htoqccz3DQ3ezA5tf/D2PXffbOvkQeXMKkOBqHLy4aReZm9L+UajPETrQVW2bWBAuVJXMJbJEqdOv+QAEXf82Eml25zGp2r7L0J+FO5nrPtSeqE="
addons:
coverity_scan:
project:
name: "ddemidov/vexcl"
description: "Build submitted via Travis CI"
notification_email: dennis.demidov@gmail.com
build_command_prepend: mkdir build-coverity && cd build-coverity && cmake -DCMAKE_BUILD_TYPE=Release ..
build_command: make
branch_pattern: coverity_scan
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq fglrx=2:8.960-0ubuntu1 opencl-headers
libboost-chrono1.48-dev libboost-date-time1.48-dev libboost-filesystem1.48-dev
libboost-system1.48-dev libboost-thread1.48-dev libboost-program-options1.48-dev
libboost-test1.48-dev python-yaml lcov
script:
- mkdir -p build && cd build
- cmake -DTEST_COVERAGE=ON ..
- make
- ./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' -o coverage.info
- bash <(curl -s https://codecov.io/bash)