mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 17:16:44 +02:00
48 lines
1.6 KiB
Text
48 lines
1.6 KiB
Text
maintainer="Hoang Nguyen <folliekazetani@protonmail.com>"
|
|
pkgname=helm-unittest
|
|
pkgver=0.7.1
|
|
pkgrel=4
|
|
pkgdesc="Helm plugin to run unit test for Helm charts"
|
|
url="https://github.com/helm-unittest/helm-unittest"
|
|
arch="all"
|
|
license="MIT"
|
|
makedepends="go"
|
|
source="
|
|
$pkgname-$pkgver.tar.gz::https://github.com/helm-unittest/helm-unittest/archive/refs/tags/v$pkgver.tar.gz
|
|
fix-test-case-32bit.patch
|
|
helm-unittest.pre-install
|
|
"
|
|
options="net" # download Go modules
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
go build -v ./cmd/helm-unittest/
|
|
}
|
|
|
|
check() {
|
|
go test ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 $pkgname "$pkgdir/usr/share/helm/plugins/unittest/bin/untt"
|
|
|
|
cat <<-EOF > "$pkgdir/usr/share/helm/plugins/unittest/plugin.yaml"
|
|
name: "unittest"
|
|
version: "$pkgver"
|
|
usage: "unittest for helm charts"
|
|
description: "Unit test for helm chart in YAML with ease to keep your chart functional and robust."
|
|
platformCommand:
|
|
- os: "$(go env GOOS)"
|
|
arch: "$(go env GOARCH)"
|
|
command: "\${HELM_PLUGIN_DIR}/bin/untt"
|
|
EOF
|
|
}
|
|
|
|
sha512sums="
|
|
a76aa754321c48131bbca3d466c739d9ba06e3ba04644e3811d2bc8a81a79243b136140ad836e22ac5932d80e4fbcfb56354e734195e51ae9fbe13f260e8b171 helm-unittest-0.7.1.tar.gz
|
|
500105396c20e3040e12dd0494dbf92e1d0fb01b0a51e3e0f47110ee5241ca9aabc5f5f056d44bf8e7a81a6de2f9c4771e6486e441fb14a0a265015367dd7c83 fix-test-case-32bit.patch
|
|
82ada6f36b79e0104c506ec5ce88c238f62e72bbee64dcc2dc178dc824e6c6a6cfc4ebfe68a68844c0513b0ac15266358a0a7e43b5f1f42e16cd231b6fde2752 helm-unittest.pre-install
|
|
"
|