-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (51 loc) · 1.7 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
language: r
sudo: required
warnings_are_errors: false
compiler:
- g++
r_packages:
- assertive
- devtools
- Rcpp
- RcppEigen
- BH
- roxygen2
- covr
r_github_packages:
- cdeterman/RViennaCL
- cdeterman/gpuR@develop
before_install:
- if [ -n "$GH_TOKEN" ]; then git config --global github.accesstoken ${GH_TOKEN}; fi;
- 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 || true
- sudo apt-get install -qq mesa-common-dev fglrx fglrx-dev
- sudo apt-get install -qq g++-4.8
- export CXX="g++-4.8"
- 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 /usr/include
- sudo mkdir CL
- cd ~
- git clone https://github.com/KhronosGroup/OpenCL-Headers.git
- sudo cp OpenCL-Headers/* /usr/include/CL/
- wget -w 1 -np -nd -nv -A h,hpp https://www.khronos.org/registry/cl/api/2.1/cl.hpp;
- sudo cp cl.hpp /usr/include/CL/
- git clone https://github.com/clMathLibraries/clBLAS.git
- cd clBLAS
- mkdir -p build && cd build
- cmake ../src -DBUILD_TEST=OFF -DBUILD_PERFORMANCE=OFF
- make && sudo make install
- export LD_LIBRARY_PATH=/usr/local/lib64:${LD_LIBRARY_PATH}
- export LD_RUN_PATH=/usr/local/lib64:${LD_RUN_PATH}
- cd ${TRAVIS_BUILD_DIR}
after_success:
- Rscript -e 'devtools::install();library(gpuR);library(methods);devtools::test()'
- Rscript -e 'options(covr.gcov = "gcov-4.8");library(covr);coveralls()'
env:
global:
- CRAN: http://cran.rstudio.com
notifications:
email:
on_success: change
on_failure: change