| 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: |
| 11 # TEST_BUILDBOT=1 BUILDBOT_BUILDERNAME=linux-newlib-0 ./buildbot_selector.sh | 11 # TEST_BUILDBOT=1 BUILDBOT_BUILDERNAME=linux-newlib-0 ./buildbot_selector.sh |
| 12 | 12 |
| 13 set -o errexit | 13 set -o errexit |
| 14 set -o nounset | 14 set -o nounset |
| 15 | 15 |
| 16 # Use this variable to pin the naclports buildbots to a specific | 16 # Use this variable to pin the naclports buildbots to a specific |
| 17 # SDK version. This does not apply to the nightly builders, and | 17 # SDK version. This does not apply to the nightly builders, and |
| 18 # should be left unset unless there is ongoing issue with the lastest | 18 # should be left unset unless there is ongoing issue with the lastest |
| 19 # SDK build. | 19 # SDK build. |
| 20 # TODO(sbc): Remove this pinned version once we fix he current | 20 PINNED_SDK_VERSION= |
| 21 # issues with pnacl/nacl-clang | |
| 22 # https://code.google.com/p/nativeclient/issues/detail?id=4200 | |
| 23 # https://code.google.com/p/nativeclient/issues/detail?id=4201 | |
| 24 # https://code.google.com/p/nativeclient/issues/detail?id=4202 | |
| 25 # https://code.google.com/p/nativeclient/issues/detail?id=4203 | |
| 26 PINNED_SDK_VERSION=331926 | |
| 27 | 21 |
| 28 SCRIPT_DIR="$(cd $(dirname $0) && pwd)" | 22 SCRIPT_DIR="$(cd $(dirname $0) && pwd)" |
| 29 NACLPORTS_SRC=$(dirname ${SCRIPT_DIR}) | 23 NACLPORTS_SRC=$(dirname ${SCRIPT_DIR}) |
| 30 DEFAULT_NACL_SDK_ROOT="${NACLPORTS_SRC}/out/nacl_sdk" | 24 DEFAULT_NACL_SDK_ROOT="${NACLPORTS_SRC}/out/nacl_sdk" |
| 31 NACL_SDK_ROOT=${NACL_SDK_ROOT:-${DEFAULT_NACL_SDK_ROOT}} | 25 NACL_SDK_ROOT=${NACL_SDK_ROOT:-${DEFAULT_NACL_SDK_ROOT}} |
| 32 export NACL_SDK_ROOT | 26 export NACL_SDK_ROOT |
| 33 | 27 |
| 34 | 28 |
| 35 BOT_GSUTIL='/b/build/scripts/slave/gsutil' | 29 BOT_GSUTIL='/b/build/scripts/slave/gsutil' |
| 36 if [ -e ${BOT_GSUTIL} ]; then | 30 if [ -e ${BOT_GSUTIL} ]; then |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 Publish | 275 Publish |
| 282 fi | 276 fi |
| 283 | 277 |
| 284 echo "@@@BUILD_STEP Summary@@@" | 278 echo "@@@BUILD_STEP Summary@@@" |
| 285 if [ "${RESULT}" != "0" ] ; then | 279 if [ "${RESULT}" != "0" ] ; then |
| 286 echo "@@@STEP_FAILURE@@@" | 280 echo "@@@STEP_FAILURE@@@" |
| 287 echo -e "${MESSAGES}" | 281 echo -e "${MESSAGES}" |
| 288 fi | 282 fi |
| 289 | 283 |
| 290 exit ${RESULT} | 284 exit ${RESULT} |
| OLD | NEW |