Skip to content

Commit

Permalink
Skip doctests in release mode on Windows to work around a Cargo bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Aug 27, 2020
1 parent 2ed7430 commit c9718fa
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions mk/appveyor.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ set TARGET_ARCH=i686
goto download

:download
REM vcvarsall turns echo off
echo on

mkdir windows_build_tools
Expand Down Expand Up @@ -47,7 +46,13 @@ set
rustc --version
cargo --version

cargo test -vv %CARGO_MODE%
REM Don't build doc tests in release mode, to work around
REM https://github.com/rust-lang/cargo/issues/8654.
if %CARGO_MODE%==--release (
cargo test -vv %CARGO_MODE% --lib --tests --bins --examples
) else (
cargo test -vv %CARGO_MODE% --doc
)
if %ERRORLEVEL% NEQ 0 exit 1

REM Verify that `cargo build`, independent from `cargo test`, works; i.e.
Expand Down

0 comments on commit c9718fa

Please sign in to comment.