Merge pull request #20 from pepyakin/check-deadlinks

Check for dead links in rustdoc
This commit is contained in:
Nikolay Volf 2018-01-26 18:20:24 +03:00 committed by GitHub
commit c1f05c822b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -11,12 +11,18 @@ addons:
- gcc-6 - gcc-6
- g++-6 - g++-6
- cmake - cmake
install:
- cargo install cargo-deadlinks
script: script:
- export CC=/usr/bin/gcc-6 - export CC=/usr/bin/gcc-6
- export CXX=/usr/bin/g++-6 - export CXX=/usr/bin/g++-6
- cargo test --verbose - cargo test --verbose
- cargo test --manifest-path=spec/Cargo.toml - cargo test --manifest-path=spec/Cargo.toml
# cargo-deadlinks will check any links in docs generated by `cargo doc`.
# This is useful as rustdoc uses raw links which is error prone.
- cargo doc && cargo deadlinks
after_success: | after_success: |
# Build documentation and deploy it to github pages.
[ $TRAVIS_BRANCH = master ] && [ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] && [ $TRAVIS_PULL_REQUEST = false ] &&
cargo doc && cargo doc &&