xgboost/tests/ci_build/print_r_stacktrace.sh
Philip Hyunsu Cho 7f101d1b33
[CI] Remove R check from Jenkins (#6372)
* Remove R check from Jenkins

* Print stacktrace when CRAN test fail in GitHub Actions

* Add verbose flag in tests/ci_build/print_r_stacktrace.sh

* Fix path in tests/ci_build/print_r_stacktrace.sh
2020-11-10 22:46:54 -08:00

24 lines
404 B
Bash
Executable File

#!/bin/bash
# To be called when R package tests have failed
set -e
set -x
flag="$1"
if [ -f "xgboost.Rcheck/00install.out" ]; then
echo "===== xgboost.Rcheck/00install.out ===="
cat xgboost.Rcheck/00install.out
fi
if [ -f "xgboost.Rcheck/00check.log" ]; then
printf "\n\n===== xgboost.Rcheck/00check.log ====\n"
cat xgboost.Rcheck/00check.log
fi
if [[ "$flag" == "fail" ]]
then
exit 1
fi