Skip to content

Instantly share code, notes, and snippets.

@ntakouris
Created August 22, 2017 20:19
Show Gist options
  • Save ntakouris/d68a6ba666540f427a24546de541d45f to your computer and use it in GitHub Desktop.
Save ntakouris/d68a6ba666540f427a24546de541d45f to your computer and use it in GitHub Desktop.
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