mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 14:56:54 +01:00
r-build-system: Set test variables.
* guix/build/r-build-system.scm (check): Set environment variables to skip tests that are not suitable for build machines. Change-Id: Ife612252711247496ac342d606ecc3d1d69b60c9
This commit is contained in:
parent
b4694bde38
commit
cf471353b2
1 changed files with 4 additions and 0 deletions
|
@ -80,6 +80,10 @@ (define* (check #:key test-target test-types inputs outputs tests? #:allow-other
|
|||
(testdir (string-append libdir pkg-name "/" test-target))
|
||||
(site-path (string-append libdir ":" (generate-site-path inputs))))
|
||||
(when (and tests? (file-exists? testdir))
|
||||
;; Skip tests that should be skipped on CI systems.
|
||||
(setenv "CI" "1")
|
||||
(setenv "NOT_CRAN" "skip")
|
||||
(setenv "IS_BIOC_BUILD_MACHINE" "true")
|
||||
(setenv "R_LIBS_SITE" site-path)
|
||||
(guard (c ((invoke-error? c)
|
||||
;; Dump the test suite log to facilitate debugging.
|
||||
|
|
Loading…
Reference in a new issue