mirror of
https://github.com/loot/loot-condition-interpreter.git
synced 2026-07-27 14:16:09 -07:00
Add coverage checking for Travis builds
This commit is contained in:
+11
@@ -4,12 +4,19 @@ addons:
|
|||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- p7zip-full
|
- p7zip-full
|
||||||
|
# tarpaulin dependencies
|
||||||
|
- libssl-dev
|
||||||
|
|
||||||
cache: cargo
|
cache: cargo
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- rustup component add rustfmt-preview
|
- rustup component add rustfmt-preview
|
||||||
- rustfmt --version
|
- rustfmt --version
|
||||||
|
- |
|
||||||
|
if [[ $(cargo tarpaulin --version) != *0.8.4 ]]
|
||||||
|
then
|
||||||
|
cargo install --force cargo-tarpaulin
|
||||||
|
fi
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- cd tests
|
- cd tests
|
||||||
@@ -35,6 +42,10 @@ script:
|
|||||||
- cargo fmt --all -- --check
|
- cargo fmt --all -- --check
|
||||||
- cargo test --all --all-features
|
- cargo test --all --all-features
|
||||||
|
|
||||||
|
# Running cbindgen through tarpaulin fails due to an unexpected "metadata"
|
||||||
|
# argument when generating the C header file, so skip the ffi-headers feature.
|
||||||
|
- cargo tarpaulin --all --ciserver travis-ci --coveralls $TRAVIS_JOB_ID
|
||||||
|
|
||||||
# Need to rebuild the FFI wrapper so that its binary is given a filename
|
# Need to rebuild the FFI wrapper so that its binary is given a filename
|
||||||
# without a hash.
|
# without a hash.
|
||||||
- cargo build --manifest-path ffi/Cargo.toml --features ffi-headers
|
- cargo build --manifest-path ffi/Cargo.toml --features ffi-headers
|
||||||
|
|||||||
@@ -3,15 +3,16 @@ loot-condition-interpreter
|
|||||||
|
|
||||||
[](https://ci.appveyor.com/project/loot/loot-condition-interpreter)
|
[](https://ci.appveyor.com/project/loot/loot-condition-interpreter)
|
||||||
[](https://travis-ci.org/loot/loot-condition-interpreter)
|
[](https://travis-ci.org/loot/loot-condition-interpreter)
|
||||||
|
[](https://coveralls.io/github/Ortham/libloadorder?branch=master)
|
||||||
[](https://deps.rs/repo/github/loot/loot-condition-interpreter)
|
[](https://deps.rs/repo/github/loot/loot-condition-interpreter)
|
||||||
|
|
||||||
A library for parsing and evaluating LOOT's metadata condition strings. It
|
A library for parsing and evaluating LOOT's metadata condition strings. It
|
||||||
provides:
|
provides:
|
||||||
|
|
||||||
- Supports metadata syntax v0.14 condition strings.
|
- Support for metadata syntax v0.14 condition strings.
|
||||||
- Condition string parsing without evaluation, for checking syntax.
|
- Condition string parsing without evaluation, for checking syntax.
|
||||||
- Evaluation of parsed condition strings.
|
- Evaluation of parsed condition strings.
|
||||||
- Efficient and safe concurrent condition evaluation thanks to Rust's safety
|
- Efficient and safe concurrent condition evaluation thanks to Rust's safety
|
||||||
guarantees.
|
guarantees.
|
||||||
- Caching of individual function evaluation results and calculated CRCs.
|
- Caching of individual function evaluation results and calculated CRCs.
|
||||||
- Executable version parsing without any external runtime dependencies.
|
- Executable version parsing without any external runtime dependencies.
|
||||||
|
|||||||
Reference in New Issue
Block a user