mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-04 08:55:20 +02:00
39 lines
1.2 KiB
Text
39 lines
1.2 KiB
Text
# Contributor: Michał Polański <michal@polanski.me>
|
|
# Maintainer: Michał Polański <michal@polanski.me>
|
|
pkgname=ginkgo
|
|
pkgver=2.22.2
|
|
pkgrel=4
|
|
pkgdesc="Modern Testing Framework for Go"
|
|
url="https://onsi.github.io/ginkgo/"
|
|
license="MIT"
|
|
arch="all"
|
|
makedepends="go"
|
|
source="https://github.com/onsi/ginkgo/archive/v$pkgver/ginkgo-$pkgver.tar.gz
|
|
tests.patch
|
|
"
|
|
options="net"
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
go build -v -o bin/ginkgo ./ginkgo
|
|
}
|
|
|
|
check() {
|
|
# integration tests are slow
|
|
# CodeLocation tests access local files inside project root, so they don't work with -trimpath
|
|
GOFLAGS="${GOFLAGS/-trimpath/}" \
|
|
./bin/ginkgo -r --randomize-all --randomize-suites \
|
|
--skip-package ./integration
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 bin/ginkgo -t "$pkgdir"/usr/bin/
|
|
}
|
|
|
|
sha512sums="
|
|
c93cd9676d2bd73bf08e5bbd55c81db2219138733d00d43e04ce9bc0d92c7c832e85b7c30db792416f4f8eb1c0f9656ead1aa5372311b6aafc4ac6184a282029 ginkgo-2.22.2.tar.gz
|
|
2fe515438583a51dbd92912a761063882788b3d001d37073986d81b9d4076e0381ee1981623cbf603fb70b59efb60bf941d577ecb8d5af97027d1877c7e164cc tests.patch
|
|
"
|