Skip to content
Merged

11 #12

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 3 additions & 26 deletions .rultor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,18 @@ architect:
docker:
image: rust:1.91

install: |
rustup toolchain install nightly
rustup component add rustfmt --toolchain nightly
rustup component add clippy --toolchain stable
rustup component add llvm-tools-preview --toolchain stable
cargo install cargo-nextest --locked
cargo install cargo-llvm-cov --locked

merge:
script: |
echo "=== Format check (nightly) ==="
cargo +nightly fmt --all -- --check

echo "=== Clippy (stable) ==="
cargo clippy --workspace --all-targets --all-features -- -D warnings

echo "=== Tests (nextest) ==="
cargo nextest run --workspace --all-features --no-fail-fast

echo "=== Doctests ==="
cargo test --doc --workspace --all-features

echo "=== Coverage check ==="
cargo llvm-cov --workspace --all-features --fail-under-lines 95

echo "=== Package check ==="
cargo package --locked
echo "CI passed, merging"

release:
pre: false
commanders:
- RAprogramm
script: |
rustup toolchain install nightly
rustup component add rustfmt --toolchain nightly
sed -i "s/^version = .*/version = \"${tag}\"/" Cargo.toml
cargo +nightly fmt --all
cargo check --all-features
cargo package --locked --allow-dirty
git commit -am "Release ${tag}"