Commit bbab1089 authored by Adam Simpkins's avatar Adam Simpkins Committed by Facebook Github Bot

add fbcode_builder configs for folly

Summary: Add fbcode_builder configs for folly to folly/build.

Reviewed By: yfeldblum

Differential Revision: D6700053

fbshipit-source-id: 3b9e974f727e7b7815580d8a12a6adfc3b529866
parent 5d276f09
This directory contains `fbcode_builder` configuration and scripts.
Note that the `folly/build` subdirectory also contains some additional build
scripts for other platforms.
## Building using `fbcode_builder`
`fbcode_builder` is a small tool shared by several Facebook projects to help
drive continuous integration builds for our open source repositories. Its
files are in `folly/fbcode_builder` (on Github) or in
`fbcode/opensource/fbcode_builder` (inside Facebook's repo).
Start with the READMEs in the `fbcode_builder` directory.
`./fbcode_builder_config.py` contains the project-specific configuration.
#!/usr/bin/env python
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 folly'
import specs.gmock as gmock
from shell_quoting import ShellQuoted
def fbcode_builder_spec(builder):
builder.add_option(
'folly/_build:cmake_defines',
{
'BUILD_SHARED_LIBS': 'OFF',
'BUILD_TESTS': 'ON',
}
)
return {
'depends_on': [gmock],
'steps': [
builder.fb_github_cmake_install('folly/_build'),
builder.step('Run folly tests', [
builder.run(ShellQuoted('ctest -j {n}').format(
n=builder.option('make_parallelism'),
))
]),
]
}
config = {
'github_project': 'facebook/folly',
'fbcode_builder_spec': fbcode_builder_spec,
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment