mirror of
https://github.com/xor-gate/go-socks5-ssh-proxy
synced 2026-03-23 06:16:35 +01:00
Initial working version
This commit is contained in:
36
vendor/github.com/xor-gate/sshfp/.travis.sh
generated
vendored
Normal file
36
vendor/github.com/xor-gate/sshfp/.travis.sh
generated
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
GREP_EXCLUDES="vendor\|examples"
|
||||
LINT_CMD="gometalinter --config .gometalinter.conf"
|
||||
|
||||
echo "--- go env"
|
||||
go env
|
||||
|
||||
#echo "--- lint (gometalinter)"
|
||||
#go get -v -u github.com/alecthomas/gometalinter
|
||||
#gometalinter --install
|
||||
#${LINT_CMD} ./...
|
||||
|
||||
#echo "--- create build folder ./build"
|
||||
#mkdir -p build
|
||||
|
||||
#echo "--- build and lint examples/*.go"
|
||||
#for e in $(ls -1 examples/*.go); do
|
||||
# filename=$(basename $e)
|
||||
# filename="${filename%.*}"
|
||||
# echo "* $filename"
|
||||
# ${LINT_CMD} $e
|
||||
# go build -o build/$filename $e
|
||||
#done
|
||||
|
||||
echo "--- go test (with race detector and coverage)"
|
||||
echo "" > coverage.txt
|
||||
|
||||
for d in $(go list ./... | grep -v ${GREP_EXCLUDES}); do
|
||||
go test -race -coverprofile=profile.out -covermode=atomic $d
|
||||
if [ -f profile.out ]; then
|
||||
cat profile.out >> coverage.txt
|
||||
rm profile.out
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user