forked from dogehash/copernicus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck.sh
More file actions
executable file
·37 lines (27 loc) · 843 Bytes
/
check.sh
File metadata and controls
executable file
·37 lines (27 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env bash
set -ex
if [ ! -x "$(type -p glide)" ]; then
exit 1
fi
if [ ! -x "$(type -p gometalinter)" ]; then
exit 1
fi
linter_targets=$(glide novendor)
find . -name "*.go" -not -path "./vendor/*" -not -path "./git/*" | xargs gofmt -w
test -z "$(gometalinter -j 4 --disable-all \
--enable=gofmt \
--enable=golint \
--enable=vet \
--enable=gosimple \
--enable=unconvert \
--exclude='should have comment' \
--deadline=10m $linter_targets 2>&1 | grep -v 'ALL_CAPS\|OP_' 2>&1 | tee /dev/stderr)"
#gometalinter -j 4 --disable-all \
#--enable=gofmt \
#--enable=golint \
#--enable=vet \
#--enable=gosimple \
#--enable=unconvert \
#--exclude='should have comment' \
#--deadline=10m $linter_targets 2>&1 | grep -v 'ALL_CAPS\|OP_' 2>&1 | tee /dev/stderr
env GORACE="halt_on_error=1" go test -race -tags rpctest $linter_targets