Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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'
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement