Upstream version 7.35.144.0
[platform/framework/web/crosswalk.git] / src / native_client / buildbot / buildbot_toolchain_build_bionic.py
1 #!/usr/bin/python
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 """Main entry point for toolchain_build buildbots.
7
8 Passes its arguments to toolchain_build.py.
9 """
10
11 import os
12 import subprocess
13 import sys
14
15
16 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
17 NACL_DIR = os.path.dirname(SCRIPT_DIR)
18
19
20 if sys.platform == 'win32':
21   print '@@@BUILD_STEP install mingw@@@'
22   sys.stdout.flush()
23   subprocess.check_call([os.path.join(NACL_DIR, 'buildbot', 'mingw_env.bat')])
24
25 print '@@@BUILD_STEP run_pynacl_tests.py@@@'
26 sys.stdout.flush()
27 subprocess.check_call([
28     sys.executable, os.path.join(NACL_DIR, 'pynacl', 'run_pynacl_tests.py')])
29
30 # Toolchain build emits its own annotator stages.
31 sys.stdout.flush()
32 subprocess.check_call([
33     sys.executable,
34     os.path.join(NACL_DIR, 'toolchain_build', 'toolchain_build_bionic.py')] +
35     sys.argv[1:])