aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/bots/compile_skia.py
blob: 28874613512190600e6531d3922f4562fd0bd53c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env python
#
# Copyright 2016 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.


import argparse
import common
import os
import sys
import utils


def main():
  parser = argparse.ArgumentParser()
  parser.add_argument('--builder_name', required=True)
  parser.add_argument('--swarm_out_dir', required=True)
  args = parser.parse_args()
  with utils.print_timings():
    bot = common.BotInfo(args.builder_name, os.path.abspath(args.swarm_out_dir))
    bot.compile_steps()


if __name__ == '__main__':
  main()