k8s-csi-s3/test/test.sh
Cyrill Troxler 9291d09baa
Add ci pipeline with GitLab (#3)
* Add automated testing
* Create loop device while staging s3backer
2018-08-03 20:30:46 +02:00

10 lines
300 B
Bash
Executable file

#!/usr/bin/env bash
export MINIO_ACCESS_KEY=FJDSJ
export MINIO_SECRET_KEY=DSG643HGDS
mkdir -p /tmp/minio
minio server --quiet /tmp/minio &>/dev/null &
sleep 5
cd $GOPATH/src/github.com/ctrox/csi-s3
if [ ! -d ./vendor ]; then dep ensure -vendor-only; fi
go test github.com/ctrox/csi-s3/pkg/s3 -cover