Allow deadlinkw failures
@@ -51,6 +51,7 @@ env:
- FEATURE=test-core
- FEATURE=test-sandbox
- FEATURE=test-doc
+ - FEATURE=non-fatal-checks
install:
- |
@@ -73,10 +74,13 @@ install:
fi
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/.local/lib
- export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$HOME/.local/lib/pkgconfig
+- |
+ if [[ "$FEATURE" == "non-fatal-checks" ]]; then
+ cargo-deadlinks -V | grep $DEADLINKS_VERS || cargo install cargo-deadlinks --vers $DEADLINKS_VERS --force
+ fi
- |
if [[ "$FEATURE" == "fmt" ]]; then
cargo-audit -V || cargo install cargo-audit --force
- cargo-deadlinks -V | grep $DEADLINKS_VERS || cargo install cargo-deadlinks --vers $DEADLINKS_VERS --force
rustfmt -V | grep $RUSTFMT_VERS || cargo install rustfmt --vers $RUSTFMT_VERS --force
cargo update
fi
@@ -91,8 +95,6 @@ script: |
case "$FEATURE" in
"fmt" )
- cargo doc --no-deps -p exonum &&
- cargo deadlinks --dir target/doc &&
cargo audit &&
cargo fmt -p exonum -- --write-mode=diff &&
cargo fmt -p sandbox -- --write-mode=diff
@@ -112,6 +114,11 @@ script: |
"test-doc" )
cargo test -p exonum --doc -- --test-threads=2
;;
+ "non-fatal-checks" )
+ cargo doc --no-deps -p exonum &&
+ cargo deadlinks --dir target/doc ||
+ true
+ ;;
"benchmarks" )
RUST_LOG=off cargo bench --manifest-path exonum/Cargo.toml --features rocksdb,long_benchmarks --no-run
;;
