2016-09-29 22:46:05 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2018-11-10 20:05:44 +00:00
|
|
|
install_etcd_pkgs() {
|
|
|
|
ETCD_VERSION="3.3.10"
|
|
|
|
go get -u go.etcd.io/etcd/clientv3
|
|
|
|
go get -u github.com/chen-anders/go-etcd-harness
|
|
|
|
wget -q -O /tmp/etcd.tar.gz "https://github.com/etcd-io/etcd/releases/download/v$ETCD_VERSION/etcd-v$ETCD_VERSION-linux-amd64.tar.gz"
|
|
|
|
tar xvzf /tmp/etcd.tar.gz -C /tmp
|
|
|
|
export PATH="$PATH:/tmp/etcd-v$ETCD_VERSION-linux-amd64"
|
|
|
|
}
|
|
|
|
|
2019-01-13 23:22:12 +00:00
|
|
|
# Install the AWS SDK which is explicitly not vendored
|
2019-05-20 20:52:15 +00:00
|
|
|
go get -u github.com/aws/aws-sdk-go/service/s3
|
|
|
|
go get -u github.com/aws/aws-sdk-go/aws/...
|
2016-09-29 23:07:07 +00:00
|
|
|
|
2019-06-11 16:23:20 +00:00
|
|
|
go get -u github.com/prometheus/client_golang/prometheus
|
|
|
|
|
|
|
|
# Install the etcd packages which are not vendored.
|
|
|
|
install_etcd_pkgs
|
2017-02-28 19:39:25 +00:00
|
|
|
|
2019-06-11 16:23:20 +00:00
|
|
|
go test ./pkg/...
|
|
|
|
go vet ./pkg/...
|