Fresh dep ensure

This commit is contained in:
Mike Cronce
2018-11-26 13:23:56 -05:00
parent 93cb8a04d7
commit 407478ab9a
9016 changed files with 551394 additions and 279685 deletions

View File

@ -14,18 +14,11 @@ APP=hostpathplugin
SKIP="WithCapacity"
if [ x${TRAVIS} = x"true" ] ; then
SKIP="WithCapacity|NodeUnpublishVolume|NodePublishVolume"
SKIP="ValidateVolumeCapabilities"
fi
# Get csi-sanity
if [ ! -x $GOPATH/bin/csi-sanity ] ; then
go get -u github.com/kubernetes-csi/csi-test
pushd $GOPATH/src/github.com/kubernetes-csi/csi-test/cmd/csi-sanity
make all
make install
popd
#./hack/get-sanity.sh
fi
./hack/get-sanity.sh
# Build
make hostpath

View File

@ -1,15 +1,12 @@
#!/bin/sh
VERSION="v0.1.0-2"
VERSION="v1.0.0-rc2"
SANITYTGZ="csi-sanity-${VERSION}.linux.amd64.tar.gz"
if [ ! -x $GOPATH/bin/csi-sanity ] ; then
curl -s -L \
https://github.com/kubernetes-csi/csi-test/releases/download/${VERSION}/${SANITYTGZ} \
-o ${SANITYTGZ} && \
tar xzvf ${SANITYTGZ} -C /tmp && \
rm -f ${SANITYTGZ} && \
cp /tmp/csi-sanity/csi-sanity $GOPATH/bin/csi-sanity && \
rm -rf /tmp/csi-sanity
fi
echo "Downloading csi-test from https://github.com/kubernetes-csi/csi-test/releases/download/${VERSION}/${SANITYTGZ}"
curl -s -L "https://github.com/kubernetes-csi/csi-test/releases/download/${VERSION}/${SANITYTGZ}" -o ${SANITYTGZ}
tar xzvf ${SANITYTGZ} -C /tmp && \
rm -f ${SANITYTGZ} && \
rm -f $GOPATH/bin/csi-sanity
cp /tmp/csi-sanity/csi-sanity $GOPATH/bin/csi-sanity && \
rm -rf /tmp/csi-sanity