Add cargo-deadlinks check into Travis script
@@ -23,6 +23,7 @@ env:
global:
- CLIPPY_VERS=0.0.155
- RUSTFMT_VERS=0.9.0
+ - DEADLINKS_VERS=0.2.1
install:
- |
@@ -41,6 +42,11 @@ install:
if [[ "$FEATURE" == "clippy" ]]; then
cargo clippy --version | grep $CLIPPY_VERS || cargo install clippy --force --vers $CLIPPY_VERS
fi
+- |
+ if [[ "$FEATURE" == "non-fatal-checks" ]]; then
+ cargo-deadlinks -V | grep $DEADLINKS_VERS || cargo install cargo-deadlinks --vers $DEADLINKS_VERS --force
+ cargo update
+ fi
- |
if [[ "$FEATURE" == "fmt" ]]; then
cargo-audit -V || cargo install cargo-audit --force
@@ -53,6 +59,11 @@ script: skip
jobs:
include:
+ - stage: lint
+ env:
+ - FEATURE=non-fatal-checks
+ script:
+ - cargo doc --no-deps && cargo deadlinks --dir target/doc || true
- stage: lint
env:
- FEATURE=fmt
