From 9cb646e51b14284bc04dc6e2d25a2cb2077a1ac1 Mon Sep 17 00:00:00 2001
From: Dorchies David <david.dorchies@irstea.fr>
Date: Tue, 8 Feb 2022 15:19:01 +0100
Subject: [PATCH] fix(ci): false positive revdepcheck

- raise an error if there is one dependent package without a "+" status

Fix #146
---
 .gitlab-ci.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 356e24c..673e3f4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -142,6 +142,7 @@ revdepcheck_devel:
   script:
     - R -q -e 'remotes::install_github("https://github.com/r-lib/revdepcheck")'
     - R -q -e 'revdepcheck::revdep_check(num_workers = 2)'
+    - R -q -e 'stopifnot(all("+" == sapply(revdepcheck::revdep_summary(), "[[", "status")))'
     - R -q -e 'if (any(sapply(revdepcheck::revdep_summary(), function(x) {any(x$cmp$change == 1)}))) stop()'
   artifacts:
     paths:
-- 
GitLab