proxygen
fbcode_builder_config.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 from __future__ import absolute_import
3 from __future__ import division
4 from __future__ import print_function
5 from __future__ import unicode_literals
6 
7 'fbcode_builder steps to build & test folly'
8 
9 import specs.gmock as gmock
10 
11 from shell_quoting import ShellQuoted
12 
13 
14 def fbcode_builder_spec(builder):
15  builder.add_option(
16  'folly/_build:cmake_defines',
17  {
18  'BUILD_SHARED_LIBS': 'OFF',
19  'BUILD_TESTS': 'ON',
20  }
21  )
22  return {
23  'depends_on': [gmock],
24  'steps': [
25  builder.fb_github_cmake_install('folly/_build'),
26  builder.step(
27  'Run folly tests', [
28  builder.run(
29  ShellQuoted('ctest --output-on-failure -j {n}')
30  .format(n=builder.option('make_parallelism'), )
31  )
32  ]
33  ),
34  ]
35  }
36 
37 
38 config = {
39  'github_project': 'facebook/folly',
40  'fbcode_builder_spec': fbcode_builder_spec,
41 }
Formatter< false, Args... > format(StringPiece fmt, Args &&...args)
Definition: Format.h:271