This repository has been archived by the owner on Jan 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
90 lines (87 loc) · 3.35 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
language: C
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "JJTfVCdQbYipAYc60EHI+HR7cb4573TMg5v3TAJLCqT3Y4C02m70cXjMLr58VklpheqlTPEv4o385z0RLeqHZ9yIiostn2SMEqBPxvdjHlLUkgVA2S9Q2HR8X2yqdmxT7jUH1+BBy0aakA7UwrYAxHGa4lpJNn9PbQmnY+IAbeKP+aVMhJT6dq2nyUiXsbdj3ugXvDlE3VHqqFaW5Lz7Z4Zq3lUXjD4Q35enbgWZZESUcv5IFKwDhBylsCpefexqRwkiU+VozEAppEWPcn0GwiWk+SxReSYlC7RVxZI1Y0cOVmt+J1lNsT/7Yn1/ebOJS+yHlvSWaDOoUOt3P0yMo5a868hFNfv2qJybljZbS3jXHu+yVK0rz7pKjqwDnQtWpIRZhhBe71isJxrd0xU6TwyHu8xcPlqgfL5A7qfgMLTem5LbnVvl6EZuVkpDLRLXQr4PxpuL3RjD2xzqQaCZxU/g/A9BGfbFg1Op+wx0Ip/YCwhetWlA7t0ohdmHwPpkonjudgs9c4zQ1dZfBw5MQS30Rp7Qd0q6tREAthxmA4ayYnH8/li0D0JTKxWv8dHW0W9ziBzpTw8p2e7Bn8hlNsfSwCAO0b6hE/EDyfbwMP2B34VSB2sMVm8Sb3A/4AOU4leAaxN01gNSVi4CP3I7+NWdwrvCwmIVpfOc0pUcToo="
matrix:
include:
- os: linux
dist: xenial
sudo: required
compiler: gcc
env:
- CMAKEOPTIONS="-D OpenCL_LOCAL_HEADERS=2.0
-D OpenCL_USE_LOCAL_HEADERS=1
-D CMAKE_BUILD_TYPE=Debug
-D TESTS_GENERATE_COVERAGE=1"
- CMAKE_TEST_TARGET=codecov
before_install:
- echo -n | openssl s_client -connect scan.coverity.com:443 |
sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' |
sudo tee -a /etc/ssl/certs/ca-
- git clone https://github.com/pocl/pocl
- pushd pocl
- git checkout v1.3
- mkdir build
- pushd build
- cmake -G Ninja -DWITH_LLVM_CONFIG=/usr/bin/llvm-config-4.0 -DCMAKE_INSTALL_PREFIX=/usr ..
- sudo ninja install
- popd
- popd
addons:
apt:
sources:
- sourceline: 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-4.0 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- lcov
- bats
- ocl-icd-libopencl1
- ocl-icd-dev
- ocl-icd-opencl-dev
- libhwloc-dev
- dialog
- ninja-build
- libclang-4.0-dev
- clang-4.0
- llvm-4.0
- llvm-4.0-dev
coverity_scan:
project:
name: "fakenmc/cf4ocl"
description: "Build submitted via Travis CI"
notification_email: [email protected]
build_command_prepend: mkdir b && cd b && cmake -G\"Unix Makefiles\"
${CMAKEOPTIONS} ..
build_command: "make"
branch_pattern: coverity_scan
after_success:
- bash <(curl -s https://codecov.io/bash)
# - os: osx
# osx_image: xcode9.4
# env:
# - CMAKEOPTIONS="-D OpenCL_USE_LOCAL_HEADERS=0 -D CMAKE_BUILD_TYPE=Debug"
# - CMAKE_TEST_TARGET=test
# before_install:
# - brew update
# - brew install glib bats
# - os: osx
# osx_image: xcode10.2
# env:
# - CMAKEOPTIONS="-D OpenCL_USE_LOCAL_HEADERS=0 -D CMAKE_BUILD_TYPE=Debug"
# - CMAKE_TEST_TARGET=test
# before_install:
# - brew update
# - brew install bats
script:
- mkdir build
- pushd build
- echo ${CMAKEOPTIONS}
- cmake -G"Unix Makefiles" ${CMAKEOPTIONS} ..
- make
- ./src/utils/ccl_devinfo
- make ${CMAKE_TEST_TARGET}
# - bats ./tests/examples ./tests/utils
# - gtester -k ./tests/lib/test_*
- popd