CI: integrations tests libp2p (#411)

* Update rust version for ci linux host

* Add mixnode build step
This commit is contained in:
gusto 2023-09-18 11:25:27 +03:00 committed by GitHub
parent 8d9a1516be
commit 633b5d6cbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 6 deletions

View File

@ -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' \

View File

@ -73,12 +73,19 @@ 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)