proxygen
fbcode_builder_config.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 # Copyright (c) 2018-present, Facebook, Inc.
4 #
5 # This source code is licensed under the BSD-style license found in the
6 # LICENSE file in the root directory of this source tree.
7 
8 from __future__ import absolute_import
9 from __future__ import division
10 from __future__ import print_function
11 from __future__ import unicode_literals
12 
13 'fbcode_builder steps to build & test Fizz'
14 
15 import specs.gmock as gmock
16 import specs.folly as folly
17 import specs.sodium as sodium
18 
19 from shell_quoting import ShellQuoted
20 
21 
22 def fbcode_builder_spec(builder):
23  builder.add_option(
24  'fizz/_build:cmake_defines',
25  {
26  'BUILD_SHARED_LIBS': 'OFF',
27  'BUILD_TESTS': 'ON',
28  }
29  )
30  return {
31  'depends_on': [gmock, folly, sodium],
32  'steps': [
33  builder.fb_github_cmake_install('fizz/_build', '../fizz', 'facebookincubator'),
34  builder.step(
35  'Run fizz tests', [
36  builder.run(
37  ShellQuoted('ctest --output-on-failure -j {n}')
38  .format(n=builder.option('make_parallelism'), )
39  )
40  ]
41  ),
42  ]
43  }
44 
45 
46 config = {
47  'github_project': 'facebookincubator/fizz',
48  'fbcode_builder_spec': fbcode_builder_spec,
49 }
Formatter< false, Args... > format(StringPiece fmt, Args &&...args)
Definition: Format.h:271