19 lines
435 B
Bash
Executable File
19 lines
435 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
dolint='gometalinter --exclude="rice-box.go" --exclude="vendor" --deadline=300s ./...'
|
|
|
|
WDIR="/go/src/github.com/filebrowser/filebrowser"
|
|
|
|
if [ "$USE_DOCKER" != "" ]; then
|
|
$(command -v winpty) docker run --rm -itv "/$(pwd):/$WDIR" -w "/$WDIR" filebrowser/dev sh -c "\
|
|
GO111MODULE=on go get -v ./... && \
|
|
GO111MODULE=on go mod vendor && \
|
|
GO111MODULE=off $dolint"
|
|
else
|
|
$dolint
|
|
fi
|