ci: create jenkins file

This commit is contained in:
Adrien Marquès 2019-05-05 11:31:32 +02:00
parent be84c86172
commit f53dfcbf62
1 changed files with 21 additions and 0 deletions

21
build/Jenkinsfile vendored Normal file
View File

@ -0,0 +1,21 @@
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'
}
}
}
}