go-waku/ci/Jenkinsfile.tests

51 lines
988 B
Plaintext

library 'status-jenkins-lib@v1.7.0'
pipeline {
agent {
label 'linux && nix-2.11 && x86_64'
}
options {
timestamps()
disableConcurrentBuilds()
buildDiscarder(logRotator(
numToKeepStr: '10',
daysToKeepStr: '30',
))
}
environment {
TARGET = 'tests'
GOPATH = "${env.HOME}/go"
PATH = "${env.PATH}:${env.GOPATH}/bin"
}
stages {
stage('Deps') {
steps { script {
nix.develop('make deps', pure: false)
} }
}
stage('Lint') {
steps { script {
nix.develop('make lint', pure: false)
} }
}
stage('Test') {
steps { script {
nix.develop('make test-ci', pure: false)
} }
}
}
post {
always { script { /* No artifact but a PKG_URL is necessary. */
env.PKG_URL = "${currentBuild.absoluteUrl}consoleText"
} }
success { script { github.notifyPR(true) } }
failure { script { github.notifyPR(false) } }
cleanup { cleanWs() }
}
}