Move pre-review PR testing from Travis-CI to Taskcluster

This commit is contained in:
Simon Sapin 2019-07-01 21:25:29 +02:00
parent 18477d1e1e
commit da766d02eb
2 changed files with 12 additions and 85 deletions

View file

@ -85,7 +85,7 @@ def main(task_for):
# https://github.com/servo/servo/pull/22597#issuecomment-451518810
CONFIG.git_sha_is_current_head()
tidy_untrusted()
linux_tidy_unit_untrusted()
# https://tools.taskcluster.net/hooks/project-servo/daily
elif task_for == "daily":
@ -158,17 +158,24 @@ windows_sparse_checkout = [
]
def tidy_untrusted():
def linux_tidy_unit_untrusted():
return (
decisionlib.DockerWorkerTask("Tidy")
decisionlib.DockerWorkerTask("Tidy + dev build + unit tests")
.with_worker_type("servo-docker-untrusted")
.with_treeherder("Linux x64", "Tidy")
.with_treeherder("Linux x64", "Tidy+Unit")
.with_max_run_time_minutes(60)
.with_dockerfile(dockerfile_path("build"))
.with_env(**build_env, **unix_build_env, **linux_build_env)
.with_repo()
.with_script("""
./mach test-tidy --no-progress --all
./mach test-tidy --no-progress --self-test
./mach build --dev
./mach test-unit
./etc/ci/lockfile_changed.sh
./etc/memory_reports_over_time.py --test
./etc/ci/check_no_panic.sh
""")
.create()
)