78c6566d8a
* Add support for libp2p backend in integration tests * Add support for libp2p in nomos-node * change default to waku * add mutually exclusive features warning * disable default features to avoid unification * disable default features * remove leftover cargo build * Make sure we are subscribed to libp2p topic at startup * unify imports * typo in ci config * Sequential build and test steps for features * Add RandomBeaconState to libp2p carnot variant --------- Co-authored-by: Gusto <bacvinka@gmail.com>
66 lines
1.5 KiB
Plaintext
66 lines
1.5 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 --no-default-features --features ${FEATURES}")
|
|
nix.shell("cargo fmt -- --check")
|
|
nix.shell("cargo clippy --all --no-default-features --features ${FEATURES} -- --deny warnings")
|
|
} }
|
|
}
|
|
|
|
stage('BuildAndTest') {
|
|
options {
|
|
lock('sync-features')
|
|
}
|
|
stages {
|
|
stage('Build') {
|
|
steps { script {
|
|
nix.shell("cargo build --all --no-default-features --features ${FEATURES}")
|
|
} }
|
|
}
|
|
|
|
stage('Test') {
|
|
steps { script {
|
|
nix.shell("cargo test --all --no-default-features --features ${FEATURES}")
|
|
} }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
cleanup { cleanWs() }
|
|
}
|
|
}
|