go-waku/ci/Jenkinsfile

44 lines
650 B
Plaintext
Raw Normal View History

pipeline {
agent {
label 'linux'
}
options {
timestamps()
buildDiscarder(logRotator(
numToKeepStr: '10',
daysToKeepStr: '30',
))
}
environment {
GOPATH = "${env.HOME}/go"
PATH = "${env.PATH}:${env.GOPATH}/bin"
}
stages {
stage('Deps') {
steps { sh 'make deps' }
}
stage('Lint') {
steps { sh 'make lint' }
}
stage('Test') {
steps { sh 'make test' }
}
stage('Codeclimate') {
steps { sh 'make codeclimate-coverage' }
}
stage('Build example') {
steps { sh 'make build-example' }
}
}
post {
always { cleanWs() }
}
}