Last active
January 10, 2018 15:48
-
-
Save nzoschke/bd511df98fa19798a896c7998e6f0f7d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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