From e706bec7dadf7632c44a893dc38bb1f6df9395fd Mon Sep 17 00:00:00 2001 From: Nikita Titov Date: Fri, 12 Jun 2020 00:44:43 +0300 Subject: [PATCH] [ci] avoid VS warning for R builds (#3162) --- .ci/test_r_package_windows.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/.ci/test_r_package_windows.ps1 b/.ci/test_r_package_windows.ps1 index f0181d4709ae..6ed536d4060b 100644 --- a/.ci/test_r_package_windows.ps1 +++ b/.ci/test_r_package_windows.ps1 @@ -121,6 +121,7 @@ if ($env:COMPILER -ne "MSVC") { Check-Output $False } } else { + $env:TMPDIR = $env:USERPROFILE # to avoid warnings about incremental builds inside a temp directory $INSTALL_LOG_FILE_NAME = "$env:BUILD_SOURCESDIRECTORY\00install_out.txt" Rscript build_r.R *> $INSTALL_LOG_FILE_NAME ; $install_succeeded = $? Write-Output "----- build and install logs -----"