mirror of
https://github.com/facebook/proxygen.git
synced 2025-08-08 18:02:05 +03:00
getdeps: allow tagging a build with its schedule type
Summary: The schedule type is used to differentiate between a build run during code review (and thus runs code that isn't yet in the master branch), from continuous or other types of run that operate on landed code. This doesn't change any behavior yet; this diff just adds the plumbing to pass down an optional arbitrary schedule type string from the CI system. In the future, we'll use the schedule type to influence the behavior of running tests. Reviewed By: strager Differential Revision: D15300120 fbshipit-source-id: 3b46afef2ff171b3fa095763dd5006a54ea328b8
This commit is contained in:
committed by
Facebook Github Bot
parent
be5d15164f
commit
49c1659695
@@ -86,7 +86,7 @@ class BuilderBase(object):
|
||||
|
||||
self._build(install_dirs=install_dirs, reconfigure=reconfigure)
|
||||
|
||||
def run_tests(self, install_dirs):
|
||||
def run_tests(self, install_dirs, schedule_type):
|
||||
""" Execute any tests that we know how to run. If they fail,
|
||||
raise an exception. """
|
||||
pass
|
||||
@@ -279,7 +279,7 @@ class CMakeBuilder(BuilderBase):
|
||||
env=env,
|
||||
)
|
||||
|
||||
def run_tests(self, install_dirs):
|
||||
def run_tests(self, install_dirs, schedule_type):
|
||||
env = self._compute_env(install_dirs)
|
||||
ctest = path_search(env, "ctest")
|
||||
cmake = path_search(env, "cmake")
|
||||
|
Reference in New Issue
Block a user