5484cb7079
* ci: add Jenkins and Docker file for PR and doc builds * Fixing waku-bindings dependacy definitions * Add post cleanup and musl-dev to Jenkinsfile * Add go to the Dockerfile for ci * GOCACHE set to tmp for ci builds * Use slim-bullseye docker image for ci builds * Update ci/Jenkinsfile.docs Co-authored-by: Jakub <i+github@always.fail> * Add image version and env vars for docs build * Remove duplicated environment section * Add missing rust dependencies * Split jenkins file into linux and macos targets * Removing github actions for PR checks * Add explicit versions to the shell.nix dependencies * Add jenkins libs required for nix * Use default rust-bin version that includes clippy and fmt * Add readme to ci folder Co-authored-by: Jakub <i+github@always.fail>
46 lines
740 B
Plaintext
46 lines
740 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')
|
|
nix.shell('cargo fmt -- --check')
|
|
nix.shell('cargo clippy')
|
|
} }
|
|
}
|
|
|
|
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() }
|
|
}
|
|
}
|