boilerplate golang bios script

This commit is contained in:
Noah Zoschke 2018-01-26 08:25:29 -08:00
parent 1b53607cd5
commit c867632ebf

12
bios.sh Executable file
View 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