diff options
author | Shivaram Venkataraman <shivaram@cs.berkeley.edu> | 2016-08-22 17:09:32 -0700 |
---|---|---|
committer | Shivaram Venkataraman <shivaram@cs.berkeley.edu> | 2016-08-22 17:09:32 -0700 |
commit | 920806ab272ba58a369072a5eeb89df5e9b470a6 (patch) | |
tree | 589a3558e62b560ca9d006202825ebe0988edb60 /R/check-cran.sh | |
parent | 37f0ab70d25802b609317bc93421d2fe3ee9db6e (diff) | |
download | spark-920806ab272ba58a369072a5eeb89df5e9b470a6.tar.gz spark-920806ab272ba58a369072a5eeb89df5e9b470a6.tar.bz2 spark-920806ab272ba58a369072a5eeb89df5e9b470a6.zip |
[SPARK-16577][SPARKR] Add CRAN documentation checks to run-tests.sh
## What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)
## How was this patch tested?
This change adds CRAN documentation checks to be run as a part of `R/run-tests.sh` . As this script is also used by Jenkins this means that we will get documentation checks on every PR going forward.
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)
Author: Shivaram Venkataraman <shivaram@cs.berkeley.edu>
Closes #14759 from shivaram/sparkr-cran-jenkins.
Diffstat (limited to 'R/check-cran.sh')
-rwxr-xr-x | R/check-cran.sh | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/R/check-cran.sh b/R/check-cran.sh index 5c90fd07f2..bb331466ae 100755 --- a/R/check-cran.sh +++ b/R/check-cran.sh @@ -43,10 +43,22 @@ $FWDIR/create-docs.sh "$R_SCRIPT_PATH/"R CMD build $FWDIR/pkg # Run check as-cran. -# TODO(shivaram): Remove the skip tests once we figure out the install mechanism - VERSION=`grep Version $FWDIR/pkg/DESCRIPTION | awk '{print $NF}'` -"$R_SCRIPT_PATH/"R CMD check --as-cran SparkR_"$VERSION".tar.gz +CRAN_CHECK_OPTIONS="--as-cran" + +if [ -n "$NO_TESTS" ] +then + CRAN_CHECK_OPTIONS=$CRAN_CHECK_OPTIONS" --no-tests" +fi + +if [ -n "$NO_MANUAL" ] +then + CRAN_CHECK_OPTIONS=$CRAN_CHECK_OPTIONS" --no-manual" +fi + +echo "Running CRAN check with $CRAN_CHECK_OPTIONS options" + +"$R_SCRIPT_PATH/"R CMD check $CRAN_CHECK_OPTIONS SparkR_"$VERSION".tar.gz popd > /dev/null |