aicra/build/Jenkinsfile

21 lines
324 B
Plaintext
Raw Normal View History

2019-05-05 09:31:32 +00:00
pipeline{
agent {
docker {
image 'golang:alpine'
}
}
stages {
stage('Test'){
environment {
GO111MODULE = 'on'
GOCACHE = '/tmp/.cache'
CGO_ENABLED = 0
}
steps {
sh 'go version'
sh 'go get -v ./...'
sh 'go test -cover -parallel 10 -v ./... -coverprofile=coverage.out'
}
}
}
}