1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-09 06:51:48 +02:00

(v1.1.0.9000) CI fix

This commit is contained in:
2020-04-30 09:05:03 +02:00
parent b040185269
commit 5bdece1f9d
12 changed files with 30 additions and 14 deletions

View File

@ -251,6 +251,11 @@ InstallGithub() {
Rscript -e 'options(repos = c(CRAN = "'"${CRAN}"'"), download.file.method = "'"${DOWNLOAD_FILE_METHOD}"'"); remotes::install_github(commandArgs(TRUE), type="'"${PKGTYPE}"'")' "$@"
}
CleanLibrary() {
# removes all installed package so ensures a clean library
Rscript -e 'remove.packages(installed.packages()[is.na(installed.packages()[,"Priority"]), "Package"])'
}
InstallDeps() {
EnsureRemotes
@ -294,6 +299,8 @@ DumpLogs() {
}
RunTests() {
Rscript -e 'sessionInfo()'
echo "Building with: R CMD build ${R_BUILD_ARGS}"
if [[ "${KEEP_VIGNETTES}" == "" ]]; then
if [[ "${OS:0:5}" == "MINGW" || "${OS:0:4}" == "MSYS" ]]; then
@ -360,6 +367,11 @@ case $COMMAND in
Bootstrap
;;
##
## Clean library
"clean_library")
CleanLibrary
;;
##
## Ensure devtools is loaded (implicitly called)
"install_devtools"|"devtools_install")
EnsureDevtools