scripts,travis: install 'marker' for CI tests

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyu-Ho Lee 2017-05-03 09:11:52 -07:00
parent 7f05e220a4
commit e9a63473a0
2 changed files with 22 additions and 0 deletions

View File

@ -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
View 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