Skip to content

Commit

Permalink
Add ./mach check to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Jul 2, 2019
1 parent 7c85dc0 commit 6609b09
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions etc/taskcluster/decision_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,24 @@ def linux_tidy_unit_docs():
./etc/ci/check_no_panic.sh
RUSTDOCFLAGS="--disable-minification" ./mach doc
cd target/doc
git init
time git add .
git -c user.name="Taskcluster" -c user.email="" \
commit -q -m "Rebuild Servo documentation"
git bundle create docs.bundle HEAD
(
cd target/doc
git init
git add .
git -c user.name="Taskcluster" -c user.email="" \
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")
.find_or_create("docs." + CONFIG.task_id())
Expand Down

0 comments on commit 6609b09

Please sign in to comment.