CI: Ensure all documentation comments are protected against stripping

This commit is contained in:
Marijn Suijten 2021-05-04 22:48:52 +02:00
parent d50d7b4a95
commit 43a4bde600

View file

@ -444,6 +444,16 @@ coverage:
reports: reports:
cobertura: coverage.xml cobertura: coverage.xml
doc-stripping:
variables:
GIT_SUBMODULE_STRATEGY: recursive
extends: .img-nightly
stage: 'extras'
script:
- cargo install rustdoc-stripper
- PATH=~/.cargo/bin/:$PATH ./generator.py --strip-docs --no-fmt
- git diff --quiet || (echo 'Files changed after running `rustdoc-stripper -s`, make sure all documentation is protected with `// rustdoc-stripper-ignore-next`!'; git diff; false)
docs: docs:
variables: variables:
GIT_SUBMODULE_STRATEGY: recursive GIT_SUBMODULE_STRATEGY: recursive