From f3970ef4101635d40923bd961a3b6f36565588e3 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Fri, 15 Feb 2019 04:22:07 -0500 Subject: [PATCH] Enable tests. --- R-rlang.spec | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/R-rlang.spec b/R-rlang.spec index c05900e..3fdc7e1 100644 --- a/R-rlang.spec +++ b/R-rlang.spec @@ -1,9 +1,9 @@ +# When we are bootstrapping, we drop some dependencies, and/or build time tests. +%{?_with_bootstrap: %global bootstrap 1} + %global packname rlang %global rlibdir %{_libdir}/R/library -# pillar and testthat requires rlang. -%global with_loop 0 - Name: R-%{packname} Version: 0.3.1 Release: 1%{?dist} @@ -28,7 +28,7 @@ BuildRequires: tex(latex) BuildRequires: R-crayon BuildRequires: R-magrittr BuildRequires: R-methods -%if %{with_loop} +%if ! 0%{?bootstrap} BuildRequires: R-pillar BuildRequires: R-testthat >= 2.0.0 %endif @@ -56,7 +56,8 @@ rm -f %{buildroot}%{rlibdir}/R.css %check -%if %{with_loop} +export LANG=C.UTF-8 +%if ! 0%{?bootstrap} %{_bindir}/R CMD check %{packname} %else _R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --no-tests @@ -80,6 +81,7 @@ _R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --no-tests %changelog * Fri Feb 15 2019 Elliott Sales de Andrade - 0.3.1-1 - Update to latest version +- Enable tests * Thu Jan 31 2019 Fedora Release Engineering - 0.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild