aboutsummaryrefslogtreecommitdiffstats
path: root/etc/taskcluster/decision_task.py
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2019-07-02 23:55:44 -0400
committerGitHub <noreply@github.com>2019-07-02 23:55:44 -0400
commit50033878a6d687a54ee5b3d1631cca2bcc32e508 (patch)
tree85ca839949d0c48cec32a486ca041fe7e6931b54 /etc/taskcluster/decision_task.py
parenta7ff87f0e97447fbe347fe0d188fad524c80ffa8 (diff)
parent6609b098d6f12e6ccaeb83783778efa80fd20271 (diff)
downloadservo-50033878a6d687a54ee5b3d1631cca2bcc32e508.tar.gz
servo-50033878a6d687a54ee5b3d1631cca2bcc32e508.zip
Auto merge of #23676 - servo:check, r=Manishearth
Share more `./mach build` logic with mach check, doc, test-unit Fixes #23659 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23676) <!-- Reviewable:end -->
Diffstat (limited to 'etc/taskcluster/decision_task.py')
-rw-r--r--etc/taskcluster/decision_task.py27
1 files changed, 19 insertions, 8 deletions
diff --git a/etc/taskcluster/decision_task.py b/etc/taskcluster/decision_task.py
index e8e6479c052..3bcd1db3658 100644
--- a/etc/taskcluster/decision_task.py
+++ b/etc/taskcluster/decision_task.py
@@ -183,9 +183,8 @@ def linux_tidy_unit_docs():
./mach build --dev
./mach test-unit
./mach package --dev
- ./mach build --dev --features raqote_backend
+ ./mach build --dev --features canvas2d-raqote
./mach build --dev --libsimpleservo
- ./mach build --dev --no-default-features --features default-except-unstable
./mach test-tidy --no-progress --self-test
./etc/memory_reports_over_time.py --test
@@ -194,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())