Skip to content

Instantly share code, notes, and snippets.

@nzoschke
Last active January 10, 2018 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nzoschke/bd511df98fa19798a896c7998e6f0f7d to your computer and use it in GitHub Desktop.
Save nzoschke/bd511df98fa19798a896c7998e6f0f7d to your computer and use it in GitHub Desktop.
#!/bin/bash
set -ex
export GIT_DIR=src/$PKG/.git
run -s "Cloning" git clone $URL --branch $REF --single-branch src/$PKG && 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment