mirror of
https://github.com/servo/servo.git
synced 2025-07-31 03:00:29 +01:00
Move docs build back into tidy+unit builder, disable minification
This commit is contained in:
parent
7bdfad92a5
commit
ab4644881f
1 changed files with 7 additions and 15 deletions
|
@ -30,8 +30,7 @@ def main(task_for):
|
||||||
linux_wpt = lambda: None # Shadows the existing top-level function
|
linux_wpt = lambda: None # Shadows the existing top-level function
|
||||||
|
|
||||||
all_tests = [
|
all_tests = [
|
||||||
linux_tidy_unit,
|
linux_tidy_unit_docs,
|
||||||
linux_docs,
|
|
||||||
windows_unit,
|
windows_unit,
|
||||||
macos_unit,
|
macos_unit,
|
||||||
magicleap_dev,
|
magicleap_dev,
|
||||||
|
@ -57,7 +56,7 @@ def main(task_for):
|
||||||
# https://github.com/servo/saltfs/blob/master/homu/map.jinja
|
# https://github.com/servo/saltfs/blob/master/homu/map.jinja
|
||||||
|
|
||||||
"try-mac": [macos_unit],
|
"try-mac": [macos_unit],
|
||||||
"try-linux": [linux_tidy_unit],
|
"try-linux": [linux_tidy_unit_docs],
|
||||||
"try-windows": [windows_unit],
|
"try-windows": [windows_unit],
|
||||||
"try-magicleap": [magicleap_dev],
|
"try-magicleap": [magicleap_dev],
|
||||||
"try-arm": [linux_arm32_dev, linux_arm64_dev],
|
"try-arm": [linux_arm32_dev, linux_arm64_dev],
|
||||||
|
@ -149,10 +148,10 @@ def tidy_untrusted():
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
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
|
||||||
|
@ -166,16 +165,8 @@ def linux_tidy_unit():
|
||||||
./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
|
||||||
""")
|
|
||||||
.find_or_create("linux_tidy_unit." + CONFIG.git_sha)
|
|
||||||
)
|
|
||||||
|
|
||||||
def linux_docs():
|
RUSTDOCFLAGS="--disable-minification" ./mach doc
|
||||||
return (
|
|
||||||
linux_build_task("Docs")
|
|
||||||
.with_treeherder("Linux x64", "Doc")
|
|
||||||
.with_script("""
|
|
||||||
./mach doc
|
|
||||||
cd target/doc
|
cd target/doc
|
||||||
git init
|
git init
|
||||||
time git add .
|
time git add .
|
||||||
|
@ -187,6 +178,7 @@ def linux_docs():
|
||||||
.find_or_create("docs." + CONFIG.git_sha)
|
.find_or_create("docs." + CONFIG.git_sha)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def upload_docs():
|
def upload_docs():
|
||||||
docs_build_task_id = decisionlib.Task.find("docs." + CONFIG.git_sha)
|
docs_build_task_id = decisionlib.Task.find("docs." + CONFIG.git_sha)
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue