mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-ellipsis: enable tests
r-testthat 3.2.1 no longer depends on r-ellipsis, so the tests can be enabled without creating a dependency cycle
This commit is contained in:
parent
5f4361f9bb
commit
5fb02ab142
2 changed files with 12 additions and 0 deletions
|
@ -15,6 +15,9 @@ license=(MIT)
|
||||||
depends=(
|
depends=(
|
||||||
r-rlang
|
r-rlang
|
||||||
)
|
)
|
||||||
|
checkdepends=(
|
||||||
|
r-testthat
|
||||||
|
)
|
||||||
optdepends=(
|
optdepends=(
|
||||||
r-covr
|
r-covr
|
||||||
r-testthat
|
r-testthat
|
||||||
|
@ -28,6 +31,11 @@ build() {
|
||||||
R CMD INSTALL "$_pkgname" -l build
|
R CMD INSTALL "$_pkgname" -l build
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "$_pkgname/tests"
|
||||||
|
R_LIBS="$srcdir/build" NOT_CRAN=true Rscript --vanilla testthat.R
|
||||||
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
install -d "$pkgdir/usr/lib/R/library"
|
install -d "$pkgdir/usr/lib/R/library"
|
||||||
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
|
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
|
||||||
|
|
|
@ -4,9 +4,13 @@ maintainers:
|
||||||
email: pekkarr@protonmail.com
|
email: pekkarr@protonmail.com
|
||||||
repo_depends:
|
repo_depends:
|
||||||
- r-rlang
|
- r-rlang
|
||||||
|
repo_makedepends:
|
||||||
|
- r-testthat
|
||||||
update_on:
|
update_on:
|
||||||
- source: rpkgs
|
- source: rpkgs
|
||||||
pkgname: ellipsis
|
pkgname: ellipsis
|
||||||
repo: cran
|
repo: cran
|
||||||
md5: true
|
md5: true
|
||||||
- alias: r
|
- alias: r
|
||||||
|
- source: manual
|
||||||
|
manual: 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue