mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Add ./mach check
to CI
This commit is contained in:
parent
7c85dc09b5
commit
6609b098d6
1 changed files with 18 additions and 6 deletions
|
@ -193,12 +193,24 @@ def linux_tidy_unit_docs():
|
||||||
./etc/ci/check_no_panic.sh
|
./etc/ci/check_no_panic.sh
|
||||||
|
|
||||||
RUSTDOCFLAGS="--disable-minification" ./mach doc
|
RUSTDOCFLAGS="--disable-minification" ./mach doc
|
||||||
cd target/doc
|
(
|
||||||
git init
|
cd target/doc
|
||||||
time git add .
|
git init
|
||||||
git -c user.name="Taskcluster" -c user.email="" \
|
git add .
|
||||||
commit -q -m "Rebuild Servo documentation"
|
git -c user.name="Taskcluster" -c user.email="" \
|
||||||
git bundle create docs.bundle HEAD
|
commit -q -m "Rebuild Servo documentation"
|
||||||
|
git bundle create docs.bundle HEAD
|
||||||
|
)
|
||||||
|
|
||||||
|
"""
|
||||||
|
# Because `rustdoc` needs metadata of dependency crates,
|
||||||
|
# `cargo doc` does almost all of the work that `cargo check` does.
|
||||||
|
# Therefore, when running them in this order the second command does very little
|
||||||
|
# and should finish quickly.
|
||||||
|
# The reverse order would not increase the total amount of work to do,
|
||||||
|
# but would reduce the amount of parallelism available.
|
||||||
|
"""
|
||||||
|
./mach check
|
||||||
""")
|
""")
|
||||||
.with_artifacts("/repo/target/doc/docs.bundle")
|
.with_artifacts("/repo/target/doc/docs.bundle")
|
||||||
.find_or_create("docs." + CONFIG.task_id())
|
.find_or_create("docs." + CONFIG.task_id())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue