1
0
mirror of synced 2025-01-25 15:09:07 +00:00
nomos-node/ci/Jenkinsfile.prs.macos
gusto ef72c7a110
Add ci build steps for libp2p node version (#290)
* Add ci build steps for libp2p node version

* Update ci/Jenkinsfile.nightly.integration

Co-authored-by: Youngjoon Lee <taxihighway@gmail.com>

* Fix typos

* Use features in cargo check

* Feature and testcase matrix for integration tests

* Use jenkins matrix to seperate steps for different features

---------

Co-authored-by: Youngjoon Lee <taxihighway@gmail.com>
2023-08-07 18:39:24 +03:00

60 lines
1.3 KiB
Plaintext

library 'status-jenkins-lib@v1.6.0'
pipeline {
agent {
label 'macos && aarch64 && nix-2.11'
}
environment {
/* Avoid cache poisoning by other jobs. */
GOCACHE = "${env.WORKSPACE_TMP}/go-build"
GOPATH = "${env.WORKSPACE_TMP}/go"
}
options {
disableConcurrentBuilds()
buildDiscarder(logRotator(
numToKeepStr: '20',
daysToKeepStr: '30',
))
}
stages {
stage('BuildAndTest') {
matrix {
axes {
axis {
name 'FEATURES'
values 'waku', 'libp2p'
}
}
stages {
stage('Check') {
steps { script {
nix.shell("cargo check --all --features ${FEATURES}")
nix.shell("cargo fmt -- --check")
nix.shell("cargo clippy --all --features ${FEATURES} -- --deny warnings")
} }
}
stage('Build') {
steps { script {
nix.shell("cargo build")
nix.shell("cargo build --all --features ${FEATURES}")
} }
}
stage('Test') {
steps { script {
nix.shell("cargo test --all --features ${FEATURES}")
} }
}
}
}
}
}
post {
cleanup { cleanWs() }
}
}