Skip to content

Commit f23065d

Browse files
authored
ci updates (#92)
1 parent 6fc31e0 commit f23065d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

justfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ clippy *args:
8282

8383
# Generate code coverage report. Will install `cargo llvm-cov` if missing.
8484
coverage *args='--no-clean --open': (cargo-install 'cargo-llvm-cov')
85+
# do not enable --all-features here as it will cause sqlite runtime errors
8586
cargo llvm-cov --workspace --all-targets --include-build-script {{args}}
8687
# TODO: add test coverage for the loadable extension too, and combine them
8788
# cargo llvm-cov --example {{bin_name}} --no-default-features --features default_loadable_extension --codecov --output-path codecov.info
@@ -133,7 +134,7 @@ get-crate-field field package=main_crate:
133134
cargo metadata --format-version 1 | jq -r '.packages | map(select(.name == "{{package}}")) | first | .{{field}}'
134135

135136
# Get the minimum supported Rust version (MSRV) for the crate
136-
get-msrv: (get-crate-field 'rust_version')
137+
get-msrv package=main_crate: (get-crate-field 'rust_version' package)
137138

138139
# Find the minimum supported Rust version (MSRV) using cargo-msrv extension, and update Cargo.toml
139140
msrv: (cargo-install 'cargo-msrv')
@@ -177,7 +178,7 @@ test: \
177178
cargo test --doc # do not enable --all-features here as it will cause sqlite runtime errors
178179
179180
# Test documentation generation
180-
test-doc: (docs '')
181+
test-doc: (docs '')
181182
182183
# Test extension by loading it into sqlite and running SQL tests
183184
test-ext: build-ext
@@ -211,6 +212,7 @@ assert-git-is-clean:
211212
>&2 echo "ERROR: git repo is no longer clean. Make sure compilation and tests artifacts are in the .gitignore, and no repo files are modified." ;\
212213
>&2 echo "######### git status ##########" ;\
213214
git status ;\
215+
git --no-pager diff ;\
214216
exit 1 ;\
215217
fi
216218

0 commit comments

Comments
 (0)