Skip to content

Commit

Permalink
redirect output
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed May 26, 2020
1 parent 0a3a9d4 commit 80c07f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .ci/test_r_package_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}

Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion .ci/test_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 80c07f1

Please sign in to comment.