From 080f2c565f3052835ed62d41960a3914697b6d47 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Fri, 3 May 2019 15:52:39 -0700 Subject: [PATCH] fbcode_builder: getdeps: add `sandcastle` subcommand Summary: This command schedules a facebook specific sandcastle job for the current commit in your repo for each of the platforms we have support for in sandcastle. You can use `--dry-run` to have it print out the job specs. To support this, I've moved around some of the support utilities to make it easier to import them. Reviewed By: simpkins Differential Revision: D14710330 fbshipit-source-id: fb1e2a2ce78e52894291159514977da97028b37f --- build/fbcode_builder/getdeps.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build/fbcode_builder/getdeps.py b/build/fbcode_builder/getdeps.py index 506c402ce..618fe5748 100755 --- a/build/fbcode_builder/getdeps.py +++ b/build/fbcode_builder/getdeps.py @@ -22,6 +22,14 @@ from getdeps.platform import HostType, context_from_host_tuple from getdeps.subcmd import SubCmd, add_subcommands, cmd +try: + import getdeps.facebook # noqa: F401 +except ImportError: + # we don't ship the facebook specific subdir, + # so allow that to fail silently + pass + + sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "getdeps"))