mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 03:09:51 +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"
|
license="BSD-2-Clause AND Ruby"
|
||||||
depends="ruby"
|
depends="ruby"
|
||||||
makedepends="ruby-rdoc"
|
makedepends="ruby-rdoc"
|
||||||
checkdepends="
|
checkdepends="ruby-test-unit"
|
||||||
ruby-rake
|
|
||||||
ruby-test-unit
|
|
||||||
"
|
|
||||||
subpackages="$pkgname-doc"
|
subpackages="$pkgname-doc"
|
||||||
source="https://github.com/ruby/matrix/archive/v$pkgver/$_gemname-$pkgver.tar.gz"
|
source="https://github.com/ruby/matrix/archive/v$pkgver/$_gemname-$pkgver.tar.gz"
|
||||||
builddir="$srcdir/$_gemname-$pkgver"
|
builddir="$srcdir/$_gemname-$pkgver"
|
||||||
|
|
||||||
prepare() {
|
|
||||||
default_prepare
|
|
||||||
sed -i '/require .bundler/d' Rakefile
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
gem build $_gemname.gemspec
|
gem build $_gemname.gemspec
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
rake test
|
ruby -I lib -I test/lib -r helper \
|
||||||
|
-e "Dir.glob('./test/**/test_*.rb', &method(:require))" -- --verbose
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue