Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Fix permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoabreu committed Jan 20, 2019
1 parent 35c0838 commit ee49f9d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ci/docker/install/ubuntu_r.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ echo "deb http://cran.rstudio.com/bin/linux/ubuntu trusty/" >> /etc/apt/sources.

apt-key add r.gpg

# We have to install some dependencies during runtime - if somebody knows a better solution,
# please don't hesitate to replace this!
# This script is supposed to only be run within Docker, so this should be "safe" to do.
mkdir -p /usr/local/lib/R/site-library
chmod 777 /usr/local/lib/R/site-library

# Installing the latest version (3.3+) that is compatible with MXNet
add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/'

Expand All @@ -42,3 +48,8 @@ apt-get install -y --allow-unauthenticated \
libxt-dev \
r-base \
r-base-dev

# Pre-install depenendencies
Rscript -e "if(!require(devtools)){install.packages('devtools', repo = 'https://cloud.r-project.org/')}"
Rscript -e "if(!require(devtools)||packageVersion('roxygen2') < '6.1.1'){install.packages('roxygen2', repo = 'https://cloud.r-project.org/')}"
Rscript -e "library(devtools); library(methods); options(repos=c(CRAN='https://cloud.r-project.org/')); install_deps(pkg='R-package', dependencies = TRUE)"
2 changes: 2 additions & 0 deletions ci/docker/runtime_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,7 @@ unittest_ubuntu_cpu_R() {
mkdir -p /tmp/r-site-library
# build R packages in parallel
mkdir -p ~/.R/
build_ccache_wrappers
echo "MAKEFLAGS = -j"$(nproc) > ~/.R/Makevars
# make -j not supported
make rpkg \
Expand All @@ -898,6 +899,7 @@ unittest_ubuntu_gpu_R() {
mkdir -p /tmp/r-site-library
# build R packages in parallel
mkdir -p ~/.R/
build_ccache_wrappers
echo "MAKEFLAGS = -j"$(nproc) > ~/.R/Makevars
# make -j not supported
make rpkg \
Expand Down

0 comments on commit ee49f9d

Please sign in to comment.