diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-12-26 01:26:22 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-12-26 01:49:18 +0100 |
commit | 88270893fa116c0ba2c21e84cd6446f383027e29 (patch) | |
tree | 7f49060770a3113a576d5ee62728a57211b21627 /community/ruby-enum/APKBUILD | |
parent | 72e72c5658f7212a8917246e3505667e1376fb7f (diff) | |
download | aports-88270893fa116c0ba2c21e84cd6446f383027e29.tar.bz2 aports-88270893fa116c0ba2c21e84cd6446f383027e29.tar.xz |
community/ruby-enum: run tests
Diffstat (limited to 'community/ruby-enum/APKBUILD')
-rw-r--r-- | community/ruby-enum/APKBUILD | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/community/ruby-enum/APKBUILD b/community/ruby-enum/APKBUILD index 4a69a039d1..1e6f1a3b1b 100644 --- a/community/ruby-enum/APKBUILD +++ b/community/ruby-enum/APKBUILD @@ -9,15 +9,20 @@ url="https://github.com/dblock/ruby-enum" arch="noarch" license="MIT" depends="ruby ruby-i18n" +checkdepends="ruby-rspec" source="$pkgname-$pkgver.tar.gz::https://github.com/dblock/$pkgname/archive/v$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" -options="!check" build() { cd "$builddir" gem build $_gemname.gemspec } +check() { + cd "$builddir" + rspec spec +} + package() { local gemdir="$pkgdir/$(ruby -rubygems -e 'puts Gem.default_dir')" local geminstdir="$gemdir/gems/$_gemname-$pkgver" |