mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
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:
35
dev-crystal/spectator/spectator-0.12.1.ebuild
Normal file
35
dev-crystal/spectator/spectator-0.12.1.ebuild
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user