-
Notifications
You must be signed in to change notification settings - Fork 26
/
.travis.yml
118 lines (106 loc) · 3.65 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#whitelist branches
branches:
only:
- master
- macosx
- develop
language: r
cache: packages
dist: trusty
sudo: required
group: edge
warnings_are_errors: false
filter_secrets: false
env:
global:
- POCL_LLVM_VERSION=5.0
- POCL_LLVM_CONFIG=/usr/lib/llvm-${POCL_LLVM_VERSION}/bin/llvm-config
- POCL_CXX_COMPILER=/usr/lib/llvm-${POCL_LLVM_VERSION}/bin/clang++
- POCL_C_COMPILER=/usr/lib/llvm-${POCL_LLVM_VERSION}/bin/clang
- OPENCL_LIB=/usr/local/lib
compiler:
- g++
r_binary_packages:
- devtools
- Rcpp
- RcppEigen
- roxygen2
- stringi
r_packages:
- assertive
r_github_packages:
- cdeterman/RViennaCL
- jimhester/covr
r_build_args: --no-build-vignettes --no-manual --no-resave-data
r_check_args: --no-build-vignettes --no-manual
matrix:
include:
- r: devel
addons:
apt:
sources:
- llvm-toolchain-trusty-5.0
packages:
- clang-5.0
env:
- MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
before_install:
- if [ -n "$GH_TOKEN" ]; then git config --global github.accesstoken ${GH_TOKEN}; fi;
- HOMEDIR="$PWD"
- eval "$(MATRIX_EVAL)"
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-updates main restricted"
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq || true
- sudo apt-get install -qq -y --force-yes opencl-headers g++-4.8 cmake git libtool libhwloc-dev wget g++ pkg-config libpthread-stubs0-dev clang-5.0 lldb-5.0 libclang-5.0-dev
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
- sudo ln -s /usr/lib/x86_64-linux-gnu/libgfortran.so.3 /usr/lib/libgfortran.so
- |
cd ..
git clone -b release_1_0 https://github.com/pocl/pocl.git pocl
cd pocl
mkdir build
cd build
cmake -DWITH_LLVM_CONFIG=${POCL_LLVM_CONFIG} -DCMAKE_INSTALL_PREFIX=/usr ..
make
sudo make install
- cd $HOMEDIR
- sudo ldconfig
- export CXX="g++-4.8"
- r: release
addons:
apt:
sources:
- llvm-toolchain-trusty-5.0
packages:
- clang-5.0
env:
- MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
before_install:
- if [ -n "$GH_TOKEN" ]; then git config --global github.accesstoken ${GH_TOKEN}; fi;
- HOMEDIR="$PWD"
- eval "$(MATRIX_EVAL)"
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-updates main restricted"
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq || true
- sudo apt-get install -qq -y --force-yes opencl-headers g++-4.8 cmake git libtool libhwloc-dev wget g++ pkg-config libpthread-stubs0-dev clang-5.0 lldb-5.0 libclang-5.0-dev
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
- sudo ln -s /usr/lib/x86_64-linux-gnu/libgfortran.so.3 /usr/lib/libgfortran.so
- |
cd ..
git clone -b release_1_0 https://github.com/pocl/pocl.git pocl
cd pocl
mkdir build
cd build
cmake -DWITH_LLVM_CONFIG=${POCL_LLVM_CONFIG} -DCMAKE_INSTALL_PREFIX=/usr ..
make
sudo make install
- cd $HOMEDIR
- sudo ldconfig
- export CXX="g++-4.8"
after_success:
- Rscript -e 'devtools::install();library(gpuR);library(methods);devtools::test()'
- Rscript -e 'options(covr.gcov = "gcov-4.8");library(covr);coveralls(line_exclusions = "inst/include/CL/cl.hpp");codecov(line_exclusions = "inst/include/CL/cl.hpp")'
notifications:
email:
on_success: change
on_failure: change