-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
60 lines (50 loc) · 1.6 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
branches:
only:
- master
language: r
compiler:
- g++
dist: trusty
sudo: required
warnings_are_errors: false
env:
global:
- CRAN: http://cran.rstudio.com
r_binary_packages:
- devtools
- Rcpp
- stringi
- roxygen2
r_github_packages:
- wrathematics/thrust
- jimhester/covr
before_install:
#- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
#- sudo apt-get update -qq
#- sudo apt-get install -qq opencl-headers libboost-program-options-dev
#- cd ..
#- echo "Installing CUDA"
#- wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_8.0.61-1_amd64.deb
#- sudo dpkg -i cuda-repo-ubuntu1404_8.0.61-1_amd64.deb
#- cd ${TRAVIS_BUILD_DIR}
#- sudo apt-get update
#- sudo apt-get install cuda-drivers cuda-core-8-0 cuda-cudart-dev-8-0
#- echo "Creating symbolic link to OpenCL because 12.04 CUDA doesn't do it."
#- ls /usr/local/
#- ls /usr/local/cuda-8.0
#- ls /usr/local/cuda-8.0/lib64/
#- sudo ln -s /usr/local/cuda-8.0/lib64/libOpenCL.so /usr/lib/x86_64-linux-gnu/libOpenCL.so
#- 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
# test CUDA build
after_script:
- docker build -t gpurcore/gpurcuda .
after_success:
- Rscript -e 'devtools::install();library(gpuRcuda);library(methods);devtools::test()'
- Rscript -e 'options(covr.gcov = "gcov-4.8");library(covr);coveralls();codecov()'
notifications:
email:
on_success: change
on_failure: change