| 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 # Use of this source code is governed by a BSD-style license that can be | 6 # Use of this source code is governed by a BSD-style license that can be |
| 7 # found in the LICENSE file. | 7 # found in the LICENSE file. |
| 8 | 8 |
| 9 # Main entry point for buildbots. | 9 # Main entry point for buildbots. |
| 10 # For local testing set BUILDBOT_BUILDERNAME and TEST_BUILDBOT, e.g: | 10 # For local testing set BUILDBOT_BUILDERNAME and TEST_BUILDBOT, e.g: |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 # TODO: Eliminate this dependency if possible. | 37 # TODO: Eliminate this dependency if possible. |
| 38 # This is required on OSX so that the naclports version of pkg-config can be | 38 # This is required on OSX so that the naclports version of pkg-config can be |
| 39 # found. | 39 # found. |
| 40 export PATH=${PATH}:/opt/local/bin | 40 export PATH=${PATH}:/opt/local/bin |
| 41 | 41 |
| 42 if [ "${TEST_BUILDBOT:-}" = "1" -a -z "${BUILDBOT_BUILDERNAME:-}" ]; then | 42 if [ "${TEST_BUILDBOT:-}" = "1" -a -z "${BUILDBOT_BUILDERNAME:-}" ]; then |
| 43 export BUILDBOT_BUILDERNAME=linux-newlib-0 | 43 export BUILDBOT_BUILDERNAME=linux-newlib-0 |
| 44 fi | 44 fi |
| 45 | 45 |
| 46 # Handle presubmit trybot. | |
| 47 if [ "${BUILDBOT_BUILDERNAME}" = "naclports-presubmit" ]; then | |
| 48 echo "@@@BUILD_STEP presubmit@@@" | |
| 49 git cl presubmit -f | |
| 50 exit 0 | |
| 51 fi | |
| 52 | |
| 53 BuildShard() { | 46 BuildShard() { |
| 54 export TOOLCHAIN | 47 export TOOLCHAIN |
| 55 export SHARD | 48 export SHARD |
| 56 export SHARDS | 49 export SHARDS |
| 57 | 50 |
| 58 echo "@@@BUILD_STEP setup@@@" | 51 echo "@@@BUILD_STEP setup@@@" |
| 59 if ! ./build_tools/buildbot_build_shard.sh ; then | 52 if ! ./build_tools/buildbot_build_shard.sh ; then |
| 60 RESULT=1 | 53 RESULT=1 |
| 61 fi | 54 fi |
| 62 } | 55 } |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 Publish | 226 Publish |
| 234 fi | 227 fi |
| 235 | 228 |
| 236 echo "@@@BUILD_STEP Summary@@@" | 229 echo "@@@BUILD_STEP Summary@@@" |
| 237 if [ "${RESULT}" != "0" ] ; then | 230 if [ "${RESULT}" != "0" ] ; then |
| 238 echo "@@@STEP_FAILURE@@@" | 231 echo "@@@STEP_FAILURE@@@" |
| 239 echo -e "${MESSAGES}" | 232 echo -e "${MESSAGES}" |
| 240 fi | 233 fi |
| 241 | 234 |
| 242 exit ${RESULT} | 235 exit ${RESULT} |
| OLD | NEW |