mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
c8b5728743
Former-commit-id: cbe15cc342afd93705ee0ebd588313dad64ad45e [formerly d8de1b0940a83510fc5af2d35b04bce5d34fec60] [formerly d5b2b44d09de2740ebde690b9eb85d5ac5bbcd0c [formerly 4945635bd6
]]
Former-commit-id: a56cc4805870bedf858ca69d9692188d69bf9bef [formerly faec73a01496613eaa0ee1512d77a8d62617cac0]
Former-commit-id: 67b5db918ee3295f5d4223b68e11504ec4f70491
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
|