1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-04-18 17:24:03 +03:00
mvfst/build/fbcode_builder_config.py
Hani Damlaj 2660a288b3 Update Company Name
Summary: - as title

Reviewed By: lnicco

Differential Revision: D33513410

fbshipit-source-id: 282b6f512cf83b9abb7990402661135b658f7bd1
2022-01-13 12:07:48 -08:00

52 lines
1.3 KiB
Python

#!/usr/bin/env python
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
"fbcode_builder steps to build & test mvfst"
import specs.fizz as fizz
import specs.fmt as fmt
import specs.folly as folly
import specs.gmock as gmock
from shell_quoting import ShellQuoted
def fbcode_builder_spec(builder):
builder.add_option(
"mvfst/_build:cmake_defines",
{
"BUILD_SHARED_LIBS": "OFF",
"BUILD_TESTS": "ON",
},
)
return {
"depends_on": [gmock, fmt, folly, fizz],
"steps": [
builder.fb_github_cmake_install("mvfst/_build", "..", "facebookincubator"),
builder.step(
"Run mvfst tests",
[
builder.run(
ShellQuoted("ctest --output-on-failure -j {n}").format(
n=builder.option("make_parallelism"),
)
)
],
),
],
}
config = {
"github_project": "facebookincubator/mvfst",
"fbcode_builder_spec": fbcode_builder_spec,
}