From 8cbd936785aa91716105d563276bf9d098f19789 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 6 Sep 2020 22:38:00 +0900 Subject: [PATCH] Check if the document can be generated without warning --- ci/crossbeam-channel.sh | 2 ++ ci/crossbeam-deque.sh | 4 ++++ ci/crossbeam-epoch.sh | 2 ++ ci/crossbeam-queue.sh | 4 ++++ ci/crossbeam-skiplist.sh | 2 ++ ci/crossbeam-utils.sh | 2 ++ ci/crossbeam.sh | 2 ++ 7 files changed, 18 insertions(+) diff --git a/ci/crossbeam-channel.sh b/ci/crossbeam-channel.sh index 7820f6cde..abe70583a 100755 --- a/ci/crossbeam-channel.sh +++ b/ci/crossbeam-channel.sh @@ -11,4 +11,6 @@ cargo test -- --test-threads=1 if [[ "$RUST_VERSION" == "nightly"* ]]; then cd benchmarks cargo check --bins + + RUSTDOCFLAGS=-Dwarnings cargo doc --no-deps --all-features fi diff --git a/ci/crossbeam-deque.sh b/ci/crossbeam-deque.sh index 66c9b1f7e..fb53ab88c 100755 --- a/ci/crossbeam-deque.sh +++ b/ci/crossbeam-deque.sh @@ -7,3 +7,7 @@ export RUSTFLAGS="-D warnings" cargo check --bins --examples --tests cargo test + +if [[ "$RUST_VERSION" == "nightly"* ]]; then + RUSTDOCFLAGS=-Dwarnings cargo doc --no-deps --all-features +fi diff --git a/ci/crossbeam-epoch.sh b/ci/crossbeam-epoch.sh index 7c9fd8ec2..995f81c0d 100755 --- a/ci/crossbeam-epoch.sh +++ b/ci/crossbeam-epoch.sh @@ -11,6 +11,8 @@ cargo test if [[ "$RUST_VERSION" == "nightly"* ]]; then cargo test --features nightly + RUSTDOCFLAGS=-Dwarnings cargo doc --no-deps --all-features + if [[ "$OSTYPE" == "linux"* ]]; then ASAN_OPTIONS="detect_odr_violation=0 detect_leaks=0" \ RUSTFLAGS="-Z sanitizer=address" \ diff --git a/ci/crossbeam-queue.sh b/ci/crossbeam-queue.sh index d11faeccf..b15303b5b 100755 --- a/ci/crossbeam-queue.sh +++ b/ci/crossbeam-queue.sh @@ -7,3 +7,7 @@ export RUSTFLAGS="-D warnings" cargo check --bins --examples --tests cargo test + +if [[ "$RUST_VERSION" == "nightly"* ]]; then + RUSTDOCFLAGS=-Dwarnings cargo doc --no-deps --all-features +fi diff --git a/ci/crossbeam-skiplist.sh b/ci/crossbeam-skiplist.sh index dbbd2cede..3928d42e4 100755 --- a/ci/crossbeam-skiplist.sh +++ b/ci/crossbeam-skiplist.sh @@ -10,4 +10,6 @@ cargo test if [[ "$RUST_VERSION" == "nightly"* ]]; then cargo test --features nightly + + RUSTDOCFLAGS=-Dwarnings cargo doc --no-deps --all-features fi diff --git a/ci/crossbeam-utils.sh b/ci/crossbeam-utils.sh index 5228a59f3..4879687de 100755 --- a/ci/crossbeam-utils.sh +++ b/ci/crossbeam-utils.sh @@ -10,4 +10,6 @@ cargo test if [[ "$RUST_VERSION" == "nightly"* ]]; then cargo test --features nightly + + RUSTDOCFLAGS=-Dwarnings cargo doc --no-deps --all-features fi diff --git a/ci/crossbeam.sh b/ci/crossbeam.sh index 4eb1773d7..99d4483bd 100755 --- a/ci/crossbeam.sh +++ b/ci/crossbeam.sh @@ -10,4 +10,6 @@ cargo test if [[ "$RUST_VERSION" == "nightly"* ]]; then cargo test --features nightly + + RUSTDOCFLAGS=-Dwarnings cargo doc --no-deps --all-features fi