dev-crystal/spectator: add 0.12.1, drop 0.11.6

Split 'spec/spectator/mocks' category to reduce RAM usage.
DSL tests still fail.

Closing bug #883819 because it hasn't been reproduced by CI or locally
for a number of new releases.

Closes: https://bugs.gentoo.org/883819 (obsolete)
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2024-11-26 17:29:38 +05:00
parent 5147b6a928
commit 7400b3c56e
3 changed files with 36 additions and 27 deletions

View File

@@ -1,2 +1,2 @@
DIST spectator-0.11.6.tar.gz 155945 BLAKE2B 338942440b04682c0614aeead71b3762663088d9693db7f995ec12067de1c7161672458505d270da2b625553bd6b8495f43c0176bf053891f778948a5f2eeb25 SHA512 989fc8131d053fa45eecf9219b4a9bd8715dc3ae3e515734cfddbaf11a6db1a28428505ce738d0d64080185dd5f23f9720bfddeeb2ed6246e72d275f2464f819
DIST spectator-0.12.0.tar.gz 156833 BLAKE2B 49fb7de6bbf9091fc081f18fce921f2f37d4a56aecb7927296f27e7168deacb4ace8c2a720e039e122d29366735ba2bc0484893c5f617f9b202f350b329d8266 SHA512 4f67c1609c8055de9f354634bcd15aab408dfddf9392e05e34a882ba027a23135c8f00322286dad6ff6adaed3b934dbef44f9816ecd48b0d59fa25d200e71b16
DIST spectator-0.12.1.tar.gz 156923 BLAKE2B a36c18c339d4cf295fd64433daf5d9c642858598dcd91e7adfe57f813e0e2a3adfaca7b42968b95eb332541e666b32d2b1a02931e0b68b7280d20b26a5d3e276 SHA512 f003e79608c5e4dd5965de446698e7bcb8049bc45185cbd7bfcb0a6523a77ca68d8d875b7985c1efce5533630845a9eb929c3aa26ec190f5613e5b450824f7d6

View File

@@ -1,26 +0,0 @@
# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit check-reqs shards
DESCRIPTION="Feature-rich testing framework for Crystal inspired by RSpec"
HOMEPAGE="https://github.com/icy-arctic-fox/spectator"
SRC_URI="https://github.com/icy-arctic-fox/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
DOCS=( {ARCHITECTURE,CHANGELOG,CONTRIBUTING,README}.md )
CHECKREQS_MEMORY="3G"
pkg_pretend() {
has test "${FEATURES}" && check-reqs_pkg_pretend
}
pkg_setup() {
has test "${FEATURES}" && check-reqs_pkg_setup
}

View File

@@ -0,0 +1,35 @@
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit shards
DESCRIPTION="Feature-rich testing framework for Crystal inspired by RSpec"
HOMEPAGE="https://github.com/icy-arctic-fox/spectator"
SRC_URI="https://github.com/icy-arctic-fox/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
DOCS=( {ARCHITECTURE,CHANGELOG,CONTRIBUTING,README}.md )
src_test() {
# adopted from .gitlab-ci.yml
shards_src_test spec/matchers/ spec/spectator/*.cr
shards_src_test spec/docs/
shards_src_test spec/features/
shards_src_test spec/issues/
shards_src_test spec/rspec/
# Build failure
#shards_src_test spec/spectator/dsl/
# Compile each test individually because otherwise
# up to 3G of RAM is eaten by compilation.
local t
for t in spec/spectator/mocks/*; do
shards_src_test "${t}"
done
}