Created
August 22, 2017 20:19
-
-
Save ntakouris/d68a6ba666540f427a24546de541d45f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
stage('Test'){ | |
echo 'Testing, Linting, Vetting, Race Condition Detection' | |
//List all our project files with 'go list ./... | grep -v /vendor/ | grep -v github.com | grep -v golang.com' | |
sh 'go tool vet $(go list ./... | grep -v /vendor/ | grep -v github.com | grep -v golang.com)' | |
sh 'golint $(go list ./... | grep -v /vendor/ | grep -v github.com | grep -v golang.com)' | |
sh 'go test $(go list ./... | grep -v /vendor/ | grep -v github.com | grep -v golang.com) -race -cover' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment