mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
scripts,travis: install 'marker' for CI tests
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
7f05e220a4
commit
e9a63473a0
@ -46,6 +46,7 @@ before_install:
|
||||
- go get -v -u honnef.co/go/tools/cmd/gosimple
|
||||
- go get -v -u honnef.co/go/tools/cmd/unused
|
||||
- go get -v -u honnef.co/go/tools/cmd/staticcheck
|
||||
- ./scripts/install-marker.sh amd64
|
||||
|
||||
# disable godep restore override
|
||||
install:
|
||||
|
21
scripts/install-marker.sh
Executable file
21
scripts/install-marker.sh
Executable file
@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
ARCH=$1
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: ${0} [amd64 or darwin], defaulting to 'amd64'" >> /dev/stderr
|
||||
ARCH=amd64
|
||||
fi
|
||||
|
||||
MARKER_URL=https://storage.googleapis.com/etcd/test-binaries/marker-v0.4.0-x86_64-unknown-linux-gnu
|
||||
if [ ${ARCH} == "darwin" ]; then
|
||||
MARKER_URL=https://storage.googleapis.com/etcd/test-binaries/marker-v0.4.0-x86_64-apple-darwin
|
||||
fi
|
||||
|
||||
echo "Installing marker"
|
||||
curl -L ${MARKER_URL} -o ${GOPATH}/bin/marker
|
||||
chmod 755 ${GOPATH}/bin/marker
|
||||
|
||||
${GOPATH}/bin/marker --version
|
Loading…
x
Reference in New Issue
Block a user