diff options
Diffstat (limited to 'community/ginkgo/APKBUILD')
-rw-r--r-- | community/ginkgo/APKBUILD | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/community/ginkgo/APKBUILD b/community/ginkgo/APKBUILD index 1290a83b800..acb1e4d7052 100644 --- a/community/ginkgo/APKBUILD +++ b/community/ginkgo/APKBUILD @@ -1,38 +1,38 @@ # Contributor: Michał Polański <michal@polanski.me> # Maintainer: Michał Polański <michal@polanski.me> pkgname=ginkgo -pkgver=1.16.5 -pkgrel=0 -pkgdesc="BDD-style Go testing framework" +pkgver=2.16.0 +pkgrel=1 +pkgdesc="Modern Testing Framework for Go" url="https://onsi.github.io/ginkgo/" license="MIT" -arch="all !armhf !mips64" # test failures -options="chmod-clean" +arch="all" makedepends="go" source="https://github.com/onsi/ginkgo/archive/v$pkgver/ginkgo-$pkgver.tar.gz - pie-and-race-conflict.patch + tests.patch " -export GOPATH="$srcdir" +export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" +export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" +export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { - go build -v -ldflags "-s -w" -o bin/ginkgo ./ginkgo + go build -v -o bin/ginkgo ./ginkgo } check() { - go test ./... + # 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 "$pkgdir"/usr/bin/ginkgo -} - -cleanup_srcdir() { - go clean -modcache - default_cleanup_srcdir + install -Dm755 bin/ginkgo -t "$pkgdir"/usr/bin/ } sha512sums=" -507ac861fe34dc5d9999819f7cd32ff11c516c77e439e1570be6904a9fa4ac40291d7a3afe30c8ef1564f8a293d9329ce0097ec9c6f93809829d4cb258afebc8 ginkgo-1.16.5.tar.gz -6d8a1ad1160ccede8eeda204277bb974b9a678efaa5624ab03d8eb204202c26c60e37b3aadd6e6368ac2d57cd073720f9faf4e397bcebb50bc643f680ca45534 pie-and-race-conflict.patch +13e760884b181c016ab600cd7ab06d86de841063a0530d8d4b83b7f52cbf248d1749b59c133b180f9fdbb5a4db85cec3a31a54c59b384f45a79b243f8b553122 ginkgo-2.16.0.tar.gz +2fe515438583a51dbd92912a761063882788b3d001d37073986d81b9d4076e0381ee1981623cbf603fb70b59efb60bf941d577ecb8d5af97027d1877c7e164cc tests.patch " |