boilerplate golang bios script
This commit is contained in:
parent
1b53607cd5
commit
c867632ebf
12
bios.sh
Executable file
12
bios.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
mkdir -p src/$PKG && cd src/$PKG
|
||||
run -s "Cloning" git clone $URL --branch $REF --single-branch .
|
||||
git reset --hard $SHA
|
||||
|
||||
PKGS=$(go list $PKG/...)
|
||||
run -s "Linting" golint -set_exit_status $PKGS
|
||||
run -s "Vetting" go vet -x $PKGS
|
||||
run -s "Building" go build -v $PKGS
|
||||
run -s "Testing" go test -v $PKGS
|
Loading…
x
Reference in New Issue
Block a user