Created
August 17, 2016 01:26
-
-
Save apremalal/b7cc4ec9047f0a5dd52a28bad0fbb708 to your computer and use it in GitHub Desktop.
Exclude vendor directory from goimports, go fmt,go install, go test ...
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
echo 'Formatting the code base...' | |
godep go fmt $(go list ./... | grep -v /vendor/) | |
echo 'Optimizing the imports...' | |
goimports -w $(go list -f {{.Dir}} ./... | grep -v /vendor/) | |
echo 'Installing dependencies. This might take some time...' | |
godep go install $(go list ./... | grep -v /vendor/) | |
echo "Executing test" | |
godep go test -v $(go list ./... | grep -v /vendor/) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment