From 80c07f12135ca2552ac9a4f9fec55a3d0ac3bf03 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Mon, 25 May 2020 23:18:15 -0500 Subject: [PATCH] redirect output --- .ci/test_r_package_windows.ps1 | 6 +++--- .ci/test_windows.ps1 | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.ci/test_r_package_windows.ps1 b/.ci/test_r_package_windows.ps1 index 73712d5d8c9a..604fb508b29a 100644 --- a/.ci/test_r_package_windows.ps1 +++ b/.ci/test_r_package_windows.ps1 @@ -50,7 +50,7 @@ Write-Output "Done installing Rtools" Write-Output "Installing dependencies" $packages = "c('data.table', 'jsonlite', 'httr', 'Matrix', 'processx', 'R6', 'testthat'), dependencies = c('Imports', 'Depends', 'LinkingTo')" -Rscript --vanilla -e "options(install.packages.check.source = 'no'); install.packages($packages, repos = '$env:CRAN_MIRROR', type = 'binary', lib = '$env:R_LIB_PATH')" ; Check-Output $? +Rscript --vanilla -e "options(install.packages.check.source = 'no'); install.packages($packages, repos = '$env:CRAN_MIRROR', type = 'binary', lib = '$env:R_LIB_PATH')" | Out-String -Stream ; Check-Output $? # MiKTeX and pandoc can be skipped on non-MINGW builds, since we don't # build the package documentation for those @@ -65,7 +65,7 @@ if ($env:COMPILER -eq "MINGW") { .\miktex\download\miktexsetup.exe --remote-package-repository="$env:CTAN_MIRROR" --portable="$env:R_LIB_PATH/miktex" --quiet install ; Check-Output $? Write-Output "Done installing MiKTeX" - initexmf --set-config-value [MPM]AutoInstall=1 + initexmf --set-config-value [MPM]AutoInstall=1 | Out-String -Stream conda install -q -y --no-deps pandoc } @@ -80,7 +80,7 @@ if ($env:COMPILER -ne "MSVC") { $env:_R_CHECK_FORCE_SUGGESTS_ = 0 Write-Output "Running R CMD check as CRAN" - R.exe CMD check --no-multiarch --as-cran ${PKG_FILE_NAME} ; $check_succeeded = $? + R.exe CMD check --no-multiarch --as-cran ${PKG_FILE_NAME} | Out-String -Stream ; $check_succeeded = $? Write-Output "R CMD check build logs:" $INSTALL_LOG_FILE_NAME = "$env:BUILD_SOURCESDIRECTORY\lightgbm.Rcheck\00install.out" diff --git a/.ci/test_windows.ps1 b/.ci/test_windows.ps1 index fd0e9f95a5e4..fd246cbc0695 100644 --- a/.ci/test_windows.ps1 +++ b/.ci/test_windows.ps1 @@ -13,7 +13,7 @@ if (Test-Path env:APPVEYOR) { } if ($env:TASK -eq "r-package") { - & $env:BUILD_SOURCESDIRECTORY\.ci\test_r_package_windows.ps1 ; Check-Output $? + & $env:BUILD_SOURCESDIRECTORY\.ci\test_r_package_windows.ps1 | Out-String -Stream ; Check-Output $? Exit 0 }