From c867632ebfee02b91314fc564b29dfd19cca839a Mon Sep 17 00:00:00 2001 From: Noah Zoschke Date: Fri, 26 Jan 2018 08:25:29 -0800 Subject: [PATCH] boilerplate golang bios script --- bios.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 bios.sh diff --git a/bios.sh b/bios.sh new file mode 100755 index 0000000..1250f42 --- /dev/null +++ b/bios.sh @@ -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