diff options
author | 2018-11-03 19:47:28 +0100 | |
---|---|---|
committer | 2018-11-03 19:47:28 +0100 | |
commit | 9ddf3bf8e79c9bca2a261a14c5adc3ac9472f3c3 (patch) | |
tree | 0f5b1b36ca69376e607074cabf0168b9f5ea3759 | |
parent | c27efea6b709c5a1b4cf4da98f108c7636993474 (diff) | |
download | rtic-9ddf3bf8e79c9bca2a261a14c5adc3ac9472f3c3.tar.gz rtic-9ddf3bf8e79c9bca2a261a14c5adc3ac9472f3c3.tar.zst rtic-9ddf3bf8e79c9bca2a261a14c5adc3ac9472f3c3.zip |
run linkchecker
-rw-r--r-- | ci/install.sh | 2 | ||||
-rw-r--r-- | ci/script.sh | 16 |
2 files changed, 18 insertions, 0 deletions
diff --git a/ci/install.sh b/ci/install.sh index 0d5e2218..90007723 100644 --- a/ci/install.sh +++ b/ci/install.sh @@ -12,6 +12,8 @@ main() { # install mdbook curl -LSfs https://japaric.github.io/trust/install.sh | \ sh -s -- --git rust-lang-nursery/mdbook --tag v0.2.1 + + pip install linkchecker --user } main diff --git a/ci/script.sh b/ci/script.sh index 5fc3ca23..4c86d144 100644 --- a/ci/script.sh +++ b/ci/script.sh @@ -12,6 +12,22 @@ main() { cargo check --target $T cargo check --features timer-queue --target $T + + if [ $TRAVIS_RUST_VERSION = beta ]; then + rm -f .cargo/config + cargo doc --features timer-queue + ( cd book && mdbook build ) + + local td=$(mktemp -d) + cp -r target/doc $td/api + cp -r book/book $td/ + cp LICENSE-* $td/book/ + + linkchecker $td/book/ + linkchecker $td/api/rtfm/ + linkchecker $td/api/cortex_m_rtfm_macros/ + fi + return fi |