Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
676b288d
Unverified
Commit
676b288d
authored
Mar 03, 2020
by
Nikita Titov
Committed by
GitHub
Mar 03, 2020
Browse files
[ci] fix R tests for macOS on Azure Pipelines (#2856)
* Update setup.sh * install only binary R packages on macOS
parent
bc7d2f0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
.ci/test_r_package.sh
.ci/test_r_package.sh
+5
-1
No files found.
.ci/test_r_package.sh
View file @
676b288d
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment