Add coverage checking for Travis builds

This commit is contained in:
Oliver Hamlet
2019-06-16 20:36:14 +01:00
parent 44d73e0611
commit cb19ec084a
2 changed files with 14 additions and 2 deletions
+11
View File
@@ -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 -2
View File
@@ -3,15 +3,16 @@ loot-condition-interpreter
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/loot/loot-condition-interpreter?branch=master&svg=true)](https://ci.appveyor.com/project/loot/loot-condition-interpreter) [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/loot/loot-condition-interpreter?branch=master&svg=true)](https://ci.appveyor.com/project/loot/loot-condition-interpreter)
[![Travis Build Status](https://travis-ci.org/loot/loot-condition-interpreter.svg?branch=master)](https://travis-ci.org/loot/loot-condition-interpreter) [![Travis Build Status](https://travis-ci.org/loot/loot-condition-interpreter.svg?branch=master)](https://travis-ci.org/loot/loot-condition-interpreter)
[![Coverage Status](https://coveralls.io/repos/github/Ortham/libloadorder/badge.svg?branch=master)](https://coveralls.io/github/Ortham/libloadorder?branch=master)
[![dependency status](https://deps.rs/repo/github/Ortham/libloadorder/status.svg)](https://deps.rs/repo/github/loot/loot-condition-interpreter) [![dependency status](https://deps.rs/repo/github/Ortham/libloadorder/status.svg)](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.