diff --git a/Jenkinsfile b/Jenkinsfile index f5d4648..453565c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -96,6 +96,8 @@ pipeline { steps { sh ''' set -eu + cargo check --workspace --all-targets --locked + cargo check --workspace --all-targets --no-default-features --locked cargo check --workspace --all-targets --all-features --locked ''' } @@ -105,6 +107,8 @@ pipeline { steps { sh ''' set -eu + cargo test --workspace --all-targets --locked + cargo test --workspace --all-targets --no-default-features --locked cargo test --workspace --all-targets --all-features --locked : >"coverage/.tests-passed-${BUILD_NUMBER}" ''' @@ -153,6 +157,7 @@ pipeline { steps { sh ''' set -eu + cargo build --workspace --locked cargo build --workspace --release --all-features --locked BINARY="${CARGO_TARGET_DIR}/release/fader_master" diff --git a/task.md b/task.md index b6973bb..4e1c20d 100644 --- a/task.md +++ b/task.md @@ -19,6 +19,7 @@ Dependencies: planning. - [x] **M0.1 Toolchain and build:** select/test an MSRV and pinned toolchain, centralize workspace metadata/dependencies, track Cargo.lock for the executable, document native build prerequisites. Acceptance: a fresh supported Linux checkout builds and tests reproducibly with `--locked`; the chosen MSRV builds the chosen dependency set. - [ ] **M0.2 CI gates:** align Jenkins with AGENTS.md, including doctests, Clippy `-D warnings`, release build and later backend feature matrix. Acceptance: representative formatting/lint/test failures fail the pipeline; default and full-feature builds pass with provisioned dependencies. + Repository configuration now runs locked default, no-default-features, and all-features checks/tests plus warning-strict documentation, Clippy, and release gates. Keep this open until a real Jenkins run on the provisioned worker passes. - [x] **M0.2a Coverage badges:** measure locked all-target line coverage with a pinned tool, enforce the documented 20% scaffold floor, and generate/archive the version, test, and coverage badges on every build. Publish atomically only from `main`, with fresh-build markers preventing stale test or coverage values. Acceptance: renderer, coverage lifecycle, finalization, and publication fixture tests pass; the real local measurement is above the floor. Jenkins publication and public retrieval remain deployment checks. - [ ] **M0.3 Domain boundary:** add `fader-core` and `fader-config`, wire current crates inward, remove placeholder arithmetic tests as real contracts replace them. Acceptance: core tests run without a terminal, sound daemon, native device connection, or Tokio runtime; dependency graph has no cycles.