Created
September 11, 2024 10:37
-
-
Save terinjokes/676b6cc265ee7f588324a5ec20252722 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 1998-2024 Gentoo Authors | |
# Distributed under the terms of the GNU General Public License v2 | |
EAPI=8 | |
inherit go-module | |
DESCRIPTION="'go test' runner with output optimized for humans, JUnit XML for CI integration, and a summary of the test results." | |
HOMEPAGE="https://github.com/gotestyourself/gotestsum" | |
SRC_URI="https://github.com/gotestyourself/gotestsum/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" | |
SRC_URI+=" https://share.terinstock.com/${P}-deps.tar.xz " | |
LICENSE="Apache-2.0" | |
BDEPEND=">=dev-lang/go-1.13" | |
SLOT="0" | |
KEYWORDS="~amd64" | |
# TODO: fix test failure with deps tarball | |
RESTRICT+=" test" | |
src_compile() { | |
ego build -trimpath . | |
} | |
src_test() { | |
go test -work "./..." || die | |
} | |
src_install() { | |
dobin gotestsum | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment