mirror of
https://github.com/status-im/go-waku.git
synced 2025-01-14 07:44:31 +00:00
Jakub Sokołowski
e10778c432
This adds a simple `Jenkinsfile` that runs `make lint` and `make test`. Had to also add a `deps` target that runs `lint-install` to install missing `golangci-lint`. Jobs folder: https://ci.status.im/job/go-waku/ Resolves: https://github.com/status-im/go-waku/issues/11 Signed-off-by: Jakub Sokołowski <jakub@status.im>
36 lines
493 B
Groovy
36 lines
493 B
Groovy
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' }
|
|
}
|
|
}
|
|
post {
|
|
always { cleanWs() }
|
|
}
|
|
}
|