Commit e42e4e9c authored by Chloe Kudryavtsev's avatar Chloe Kudryavtsev
Browse files

testing/minio: upgrade to 0.20190918

Significant changes:
- Now that we are on go 1.13, enabling go111modules isn't needed
- With full go111modules support GOPATH is mostly there for caching
- Some new logic is failing cmd tests (DiskUsage function)
parent 6ac0abb9
Pipeline #270 passed with stage
in 19 seconds
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Chloe Kudryavtsev <toast@toastin.space>
pkgname=minio
_pkgver='RELEASE.2019-08-21T19-40-07Z'
_pkgver='RELEASE.2019-09-18T21-55-05Z'
pkgver=${_pkgver#*.}
pkgver=${pkgver%T*}
pkgver=0.${pkgver//-}
......@@ -19,29 +19,24 @@ source="
minio.confd
$pkgname-$pkgver.tar.gz::https://github.com/minio/minio/archive/$_pkgver.tar.gz
"
builddir="$srcdir/src/github.com/minio/$pkgname"
builddir="$srcdir/$pkgname-$_pkgver"
options="net"
subpackages="$pkgname-openrc"
export GOPATH="$srcdir"
export CGO_ENABLED=0
prepare() {
mkdir -p ${builddir%/*}
mv "$srcdir"/$pkgname-$_pkgver "$builddir"/
default_prepare
}
build() {
local _ldflags=$(go run buildscripts/gen-ldflags.go 2> /dev/null)
GO111MODULE=on go build -tags kqueue --ldflags "$_ldflags" -o bin/minio
go build -tags kqueue --ldflags "$_ldflags" -o bin/minio
}
check() {
# cmd: disk usage errors, like same as pkg/disk
# pkg/disk: doesn't know what btrfs is
# pkg/s3select: fails on 32bit systems
GO111MODULE=on go test -tags kqueue $(go list ./... | grep -v \
go test -tags kqueue $(go list ./... | grep -v \
-e 'cmd$' \
-e pkg/disk \
-e pkg/s3select
)
......@@ -63,4 +58,4 @@ cleanup_srcdir() {
sha512sums="6427a225d4e6c51cc5de077ccd29ddf52556722cf958e83e480df1c5882aa4fa7daebfeb970e80f8f9c3176594d8e427e8c8dbf268ce945647a11bdf1e69affd minio.initd
ed9790fbadfb38e4d660eb1befd87e803d70dec04d936e8cd26def4a9c21240bb7cae8750ae3395aa4761e6738b9e346c86ba57761cfde30efe46d2cb459a7e4 minio.confd
f66a746a3155ab20054e70b48aac035000bb590adda63e74520eb6da54a37e11c978b3528238cfe90ed5ce9270e93b2951a513b261e1ed4d7360fc6e082450c7 minio-0.20190821.tar.gz"
d4470c223f12796699807c1d41f716e308a68861c5f06a124017a35fd551c1b6f3dc502a774e41b196605690289e775a479f63c155c4c9b4b171af5f74b78cf0 minio-0.20190918.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment