aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2024-06-24 19:13:09 +0200
committerGitHub <noreply@github.com>2024-06-24 17:13:09 +0000
commite331cc67c3f8d09b3108d6e8f3bd92128dad3b42 (patch)
treed1bda2adf4ad38b733b4df88fa088e535daf23e4 /python/servo
parent30dad2565f5fad2d498f62a62895c3fd71c2c16d (diff)
downloadservo-e331cc67c3f8d09b3108d6e8f3bd92128dad3b42.tar.gz
servo-e331cc67c3f8d09b3108d6e8f3bd92128dad3b42.zip
mach: Expose a `--skip-static-analysis` to `mach boostrap` (#32587)
This should speed up runners which just need to run the WPT tests. Fixes #32582.
Diffstat (limited to 'python/servo')
-rw-r--r--python/servo/bootstrap_commands.py7
-rw-r--r--python/servo/platform/base.py9
2 files changed, 10 insertions, 6 deletions
diff --git a/python/servo/bootstrap_commands.py b/python/servo/bootstrap_commands.py
index 3545de3a82d..362509ffc3a 100644
--- a/python/servo/bootstrap_commands.py
+++ b/python/servo/bootstrap_commands.py
@@ -43,12 +43,15 @@ class MachCommands(CommandBase):
@CommandArgument('--skip-platform',
action='store_true',
help='Skip platform bootstrapping.')
- def bootstrap(self, force=False, skip_platform=False):
+ @CommandArgument('--skip-lints',
+ action='store_true',
+ help='Skip tool necessary for linting.')
+ def bootstrap(self, force=False, skip_platform=False, skip_lints=False):
# Note: This entry point isn't actually invoked by ./mach bootstrap.
# ./mach bootstrap calls mach_bootstrap.bootstrap_command_only so that
# it can install dependencies without needing mach's dependencies
try:
- servo.platform.get().bootstrap(force, skip_platform)
+ servo.platform.get().bootstrap(force, skip_platform, skip_lints)
except NotImplementedError as exception:
print(exception)
return 1
diff --git a/python/servo/platform/base.py b/python/servo/platform/base.py
index 0e81f149d9e..3cfbd09b618 100644
--- a/python/servo/platform/base.py
+++ b/python/servo/platform/base.py
@@ -54,13 +54,14 @@ class Base:
except FileNotFoundError:
return False
- def bootstrap(self, force: bool, skip_platform: bool):
+ def bootstrap(self, force: bool, skip_platform: bool, skip_lints: bool):
installed_something = False
if not skip_platform:
installed_something |= self._platform_bootstrap(force)
- installed_something |= self.install_taplo(force)
- installed_something |= self.install_cargo_deny(force)
- installed_something |= self.install_crown(force)
+ if not skip_lints:
+ installed_something |= self.install_taplo(force)
+ installed_something |= self.install_cargo_deny(force)
+ installed_something |= self.install_crown(force)
if not installed_something:
print("Dependencies were already installed!")