CI: integrations tests libp2p (#411)
* Update rust version for ci linux host * Add mixnode build step
This commit is contained in:
parent
8d9a1516be
commit
633b5d6cbf
|
@ -1,8 +1,8 @@
|
||||||
FROM rust:1.70.0-slim-bullseye
|
FROM rust:1.72.0-slim-bullseye
|
||||||
|
|
||||||
LABEL maintainer="augustinas@status.im"
|
LABEL maintainer="augustinas@status.im" \
|
||||||
LABEL source="https://github.com/logos-co/nomos-research"
|
source="https://github.com/logos-co/nomos-node" \
|
||||||
LABEL description="nomos-research ci build image"
|
description="nomos-node ci build image"
|
||||||
|
|
||||||
# Using backports for go 1.19
|
# Using backports for go 1.19
|
||||||
RUN echo 'deb http://deb.debian.org/debian bullseye-backports main' \
|
RUN echo 'deb http://deb.debian.org/debian bullseye-backports main' \
|
||||||
|
|
|
@ -73,13 +73,20 @@ pipeline {
|
||||||
|
|
||||||
def runBuildAndTestsForFeature(feature, tests) {
|
def runBuildAndTestsForFeature(feature, tests) {
|
||||||
echo "Building node for feature: ${feature}"
|
echo "Building node for feature: ${feature}"
|
||||||
def build_cmd = "cargo build -p nomos-node --no-default-features --features ${feature}"
|
def build_node = "cargo build -p nomos-node --no-default-features --features ${feature}"
|
||||||
|
|
||||||
if (sh(script: build_cmd, returnStatus: true) != 0) {
|
if (sh(script: build_node, returnStatus: true) != 0) {
|
||||||
error("Build '${feature}' node failed")
|
error("Build '${feature}' node failed")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def build_mixnode = "cargo build -p mixnode"
|
||||||
|
|
||||||
|
if (sh(script: build_mixnode, returnStatus: true) != 0) {
|
||||||
|
error("Build '${feature}' mixnode failed")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
int iterations = params.ITERATIONS.toInteger()
|
int iterations = params.ITERATIONS.toInteger()
|
||||||
runTestCases(tests, iterations)
|
runTestCases(tests, iterations)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue