update scripts for ci
This commit is contained in:
parent
b4f41342fe
commit
e36f46f6b4
@ -1,7 +1,3 @@
|
||||
[deps.mux]
|
||||
import = "github.com/gorilla/mux"
|
||||
commit = "b08c5fcf14d01cb0c20ddf70157f54d4a2c3a38a"
|
||||
|
||||
[deps.simpleuuid]
|
||||
import = "github.com/streadway/simpleuuid"
|
||||
commit = "6617b501e485b77e61b98cd533aefff9e258b5a7"
|
||||
|
@ -1,2 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
script/fmt
|
||||
GOPATH="`pwd`/.gopack/vendor" \
|
||||
go run script/build.go "$@"
|
||||
|
16
script/fmt
16
script/fmt
@ -1,9 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
gofmt -w -l *.go \
|
||||
client/*.go \
|
||||
cmd/*.go \
|
||||
commands/*.go \
|
||||
filters/*.go \
|
||||
queuedir/*.go \
|
||||
script/*.go
|
||||
gofmt -w -l "$@" *.go
|
||||
|
||||
# don't run gofmt in these directories
|
||||
ignored=(/bin/ /docs/ /log/ /tmp/)
|
||||
for i in */ ; do
|
||||
if [[ ! ${ignored[*]} =~ "/$i" ]]; then
|
||||
gofmt -w -l "$@" "${i%?}"
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user