1
0
mirror of synced 2025-01-11 08:15:48 +00:00
nomos-node/ci/Jenkinsfile.prs.macos
gusto ae97db3e0f
Lint and check all features (#27)
Added flags for the "Check" stage for linux and macos PR targets.
2022-12-13 13:33:51 +02:00

46 lines
801 B
Plaintext

library 'status-jenkins-lib@v1.6.0'
pipeline {
agent {
label 'macos && x86_64'
}
environment {
GOPATH = '/tmp/go'
GOCACHE = '/tmp/'
}
options {
disableConcurrentBuilds()
buildDiscarder(logRotator(
numToKeepStr: '20',
daysToKeepStr: '30',
))
}
stages {
stage('Check') {
steps { script {
nix.shell('cargo check --all --all-features')
nix.shell('cargo fmt -- --check')
nix.shell('cargo clippy --all --all-features -- --deny warnings')
} }
}
stage('Build') {
steps { script {
nix.shell('cargo build --all --all-features')
} }
}
stage('Test') {
steps { script {
nix.shell('cargo test --all --all-features')
} }
}
}
post {
cleanup { cleanWs() }
}
}