Unverified Commit 676b288d authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

[ci] fix R tests for macOS on Azure Pipelines (#2856)

* Update setup.sh

* install only binary R packages on macOS
parent bc7d2f0c
...@@ -65,7 +65,11 @@ conda install \ ...@@ -65,7 +65,11 @@ conda install \
# Manually install Depends and Imports libraries + 'testthat' # Manually install Depends and Imports libraries + 'testthat'
# to avoid a CI-time dependency on devtools (for devtools::install_deps()) # to avoid a CI-time dependency on devtools (for devtools::install_deps())
Rscript -e "install.packages(c('data.table', 'jsonlite', 'Matrix', 'R6', 'testthat'))" || exit -1 packages="c('data.table', 'jsonlite', 'Matrix', 'R6', 'testthat')"
if [[ $OS_NAME == "macos" ]]; then
packages+=", type = 'binary'"
fi
Rscript -e "install.packages(${packages})" || exit -1
cd ${BUILD_DIRECTORY} cd ${BUILD_DIRECTORY}
Rscript build_r.R || exit -1 Rscript build_r.R || exit -1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment