OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 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 | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 set -o xtrace | 6 set -o xtrace |
7 set -o nounset | 7 set -o nounset |
8 set -o errexit | 8 set -o errexit |
9 | 9 |
10 # Tell build.sh and test.sh that we're a bot. | 10 # Tell build.sh and test.sh that we're a bot. |
(...skipping 20 matching lines...) Expand all Loading... |
31 readonly SCONS_S_M_IRT="small_tests_irt medium_tests_irt" | 31 readonly SCONS_S_M_IRT="small_tests_irt medium_tests_irt" |
32 # subset of tests used on toolchain builders | 32 # subset of tests used on toolchain builders |
33 readonly SCONS_TC_TESTS="small_tests medium_tests" | 33 readonly SCONS_TC_TESTS="small_tests medium_tests" |
34 | 34 |
35 readonly SCONS_COMMON="./scons --verbose bitcode=1" | 35 readonly SCONS_COMMON="./scons --verbose bitcode=1" |
36 readonly UP_DOWN_LOAD="buildbot/file_up_down_load.sh" | 36 readonly UP_DOWN_LOAD="buildbot/file_up_down_load.sh" |
37 # This script is used by toolchain bots (i.e. tc-xxx functions) | 37 # This script is used by toolchain bots (i.e. tc-xxx functions) |
38 readonly PNACL_BUILD="pnacl/build.sh" | 38 readonly PNACL_BUILD="pnacl/build.sh" |
39 readonly LLVM_TEST="pnacl/scripts/llvm-test.py" | 39 readonly LLVM_TEST="pnacl/scripts/llvm-test.py" |
40 readonly DRIVER_TESTS="pnacl/driver/tests/driver_tests.py" | 40 readonly DRIVER_TESTS="pnacl/driver/tests/driver_tests.py" |
41 readonly ACCEPTABLE_TOOLCHAIN_SIZE_MB=55 | 41 readonly ACCEPTABLE_TOOLCHAIN_SIZE_MB=56 |
42 | 42 |
43 setup-goma() { | 43 setup-goma() { |
44 echo "@@@BUILD_STEP goma_setup@@@" | 44 echo "@@@BUILD_STEP goma_setup@@@" |
45 if /b/build/goma/goma_ctl.sh ensure_start ; then | 45 if /b/build/goma/goma_ctl.sh ensure_start ; then |
46 PATH=/b/build/goma:$PATH | 46 PATH=/b/build/goma:$PATH |
47 export PNACL_CONCURRENCY_HOST=100 | 47 export PNACL_CONCURRENCY_HOST=100 |
48 else | 48 else |
49 # For now, don't make the bot go red if goma fails to start, just fall back | 49 # For now, don't make the bot go red if goma fails to start, just fall back |
50 echo "@@@STEP_WARNINGS@@@" | 50 echo "@@@STEP_WARNINGS@@@" |
51 fi | 51 fi |
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 exit 1 | 696 exit 1 |
697 fi | 697 fi |
698 | 698 |
699 "$@" | 699 "$@" |
700 | 700 |
701 if [[ ${RETCODE} != 0 ]]; then | 701 if [[ ${RETCODE} != 0 ]]; then |
702 echo "@@@BUILD_STEP summary@@@" | 702 echo "@@@BUILD_STEP summary@@@" |
703 echo There were failed stages. | 703 echo There were failed stages. |
704 exit ${RETCODE} | 704 exit ${RETCODE} |
705 fi | 705 fi |
OLD | NEW |