Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. stage('Test'){
  2. echo 'Testing, Linting, Vetting, Race Condition Detection'
  3.  
  4. //List all our project files with 'go list ./... | grep -v /vendor/ | grep -v github.com | grep -v golang.com'
  5. sh 'go tool vet $(go list ./... | grep -v /vendor/ | grep -v github.com | grep -v golang.com)'
  6. sh 'golint $(go list ./... | grep -v /vendor/ | grep -v github.com | grep -v golang.com)'
  7. sh 'go test $(go list ./... | grep -v /vendor/ | grep -v github.com | grep -v golang.com) -race -cover'
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement