mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-02-14 10:45:47 +00:00
Merge pull request #116 from str4d/code-coverage
Add code coverage with cargo-tarpaulin and Codecov
This commit is contained in:
commit
0da4921055
4
.github/workflows/rust.yml
vendored
4
.github/workflows/rust.yml
vendored
@ -18,6 +18,8 @@ jobs:
|
||||
run: cargo build --verbose --release --all
|
||||
- name: Run tests
|
||||
run: cargo test --verbose --release --all
|
||||
- name: Run slow tests
|
||||
run: cargo test --verbose --release --all -- --ignored
|
||||
|
||||
macOS:
|
||||
name: Test on macOS-latest
|
||||
@ -35,3 +37,5 @@ jobs:
|
||||
run: $HOME/.cargo/bin/cargo build --verbose --release --all
|
||||
- name: Run tests
|
||||
run: $HOME/.cargo/bin/cargo test --verbose --release --all
|
||||
- name: Run slow tests
|
||||
run: $HOME/.cargo/bin/cargo test --verbose --release --all -- --ignored
|
||||
|
19
.travis.yml
19
.travis.yml
@ -2,6 +2,12 @@ language: rust
|
||||
rust:
|
||||
- 1.36.0
|
||||
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
# For cargo-tarpaulin
|
||||
- libssl-dev
|
||||
|
||||
cache: cargo
|
||||
|
||||
before_script:
|
||||
@ -9,4 +15,17 @@ before_script:
|
||||
|
||||
script:
|
||||
- cargo fmt --all -- --check
|
||||
- cargo build --verbose --release --all
|
||||
- cargo test --verbose --release --all
|
||||
- cargo test --verbose --release --all -- --ignored
|
||||
|
||||
before_cache:
|
||||
- rm -rf "$TRAVIS_HOME/.cargo/registry/src"
|
||||
- cargo install cargo-tarpaulin || echo "cargo-tarpaulin already installed"
|
||||
- cargo install cargo-update || echo "cargo-update already installed"
|
||||
- cargo install-update -a # update outdated cached binaries
|
||||
|
||||
after_success:
|
||||
# Manually exclude packages that are going to be removed from the workspace
|
||||
- travis_wait 35 cargo tarpaulin --release --timeout 600 --out Xml --packages "librustzcash,zcash_client_backend,zcash_primitives,zcash_proofs"
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
|
@ -326,6 +326,7 @@ where
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[ignore]
|
||||
fn test_sprout_constraints() {
|
||||
use bellman::gadgets::test::*;
|
||||
use pairing::bls12_381::Bls12;
|
||||
|
Loading…
x
Reference in New Issue
Block a user