mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
main/ruby-matrix: run tests without rake
To avoid unnecessary dependency on ruby-rake.
This commit is contained in:
parent
1c1bc75fb2
commit
67babbdd8b
1 changed files with 3 additions and 10 deletions
|
@ -12,25 +12,18 @@ arch="noarch"
|
|||
license="BSD-2-Clause AND Ruby"
|
||||
depends="ruby"
|
||||
makedepends="ruby-rdoc"
|
||||
checkdepends="
|
||||
ruby-rake
|
||||
ruby-test-unit
|
||||
"
|
||||
checkdepends="ruby-test-unit"
|
||||
subpackages="$pkgname-doc"
|
||||
source="https://github.com/ruby/matrix/archive/v$pkgver/$_gemname-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_gemname-$pkgver"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
sed -i '/require .bundler/d' Rakefile
|
||||
}
|
||||
|
||||
build() {
|
||||
gem build $_gemname.gemspec
|
||||
}
|
||||
|
||||
check() {
|
||||
rake test
|
||||
ruby -I lib -I test/lib -r helper \
|
||||
-e "Dir.glob('./test/**/test_*.rb', &method(:require))" -- --verbose
|
||||
}
|
||||
|
||||
package() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue