Taskcluster: build docs

This commit is contained in:
Simon Sapin 2018-12-07 17:19:24 +01:00
parent e5ae3464cc
commit a35d16a09c

View file

@ -13,7 +13,7 @@ def main(task_for, mock=False):
if CONFIG.git_ref in ["refs/heads/auto", "refs/heads/try", "refs/heads/try-taskcluster"]: if CONFIG.git_ref in ["refs/heads/auto", "refs/heads/try", "refs/heads/try-taskcluster"]:
CONFIG.treeherder_repo_name = "servo-" + CONFIG.git_ref.split("/")[-1] CONFIG.treeherder_repo_name = "servo-" + CONFIG.git_ref.split("/")[-1]
linux_tidy_unit() linux_tidy_unit_docs()
android_arm32_dev() android_arm32_dev()
android_arm32_release() android_arm32_release()
android_x86_release() android_x86_release()
@ -69,10 +69,10 @@ windows_sparse_checkout = [
] ]
def linux_tidy_unit(): def linux_tidy_unit_docs():
return ( return (
linux_build_task("Tidy + dev build + unit tests") linux_build_task("Tidy + dev build + unit tests + docs")
.with_treeherder("Linux x64", "Tidy+Unit") .with_treeherder("Linux x64", "Tidy+Unit+Doc")
.with_script(""" .with_script("""
./mach test-tidy --no-progress --all ./mach test-tidy --no-progress --all
./mach build --dev ./mach build --dev
@ -81,11 +81,22 @@ def linux_tidy_unit():
./mach build --dev --libsimpleservo ./mach build --dev --libsimpleservo
./mach build --dev --no-default-features --features default-except-unstable ./mach build --dev --no-default-features --features default-except-unstable
./mach test-tidy --no-progress --self-test ./mach test-tidy --no-progress --self-test
./etc/memory_reports_over_time.py --test ./etc/memory_reports_over_time.py --test
./etc/taskcluster/mock.py ./etc/taskcluster/mock.py
./etc/ci/lockfile_changed.sh ./etc/ci/lockfile_changed.sh
./etc/ci/check_no_panic.sh ./etc/ci/check_no_panic.sh
""").create()
./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
""")
.with_artifacts("/repo/target/doc/docs.bundle")
.find_or_create("docs." + CONFIG.git_sha)
) )
@ -98,7 +109,8 @@ def macos_unit():
./mach test-unit ./mach test-unit
./mach package --dev ./mach package --dev
./etc/ci/lockfile_changed.sh ./etc/ci/lockfile_changed.sh
""").create() """)
.create()
) )