| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium 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 # Bash functions used by buildbot annotator scripts for the android | 6 # Bash functions used by buildbot annotator scripts for the android |
| 7 # build of chromium. Executing this script should not perform actions | 7 # build of chromium. Executing this script should not perform actions |
| 8 # other than setting variables and defining of functions. | 8 # other than setting variables and defining of functions. |
| 9 | 9 |
| 10 # Number of jobs on the compile line; e.g. make -j"${JOBS}" | 10 # Number of jobs on the compile line; e.g. make -j"${JOBS}" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 export GOMA_API_KEY_FILE=${GOMA_DIR}/goma.key | 111 export GOMA_API_KEY_FILE=${GOMA_DIR}/goma.key |
| 112 fi | 112 fi |
| 113 export GOMA_COMPILER_PROXY_DAEMON_MODE=true | 113 export GOMA_COMPILER_PROXY_DAEMON_MODE=true |
| 114 export GOMA_COMPILER_PROXY_RPC_TIMEOUT_SECS=300 | 114 export GOMA_COMPILER_PROXY_RPC_TIMEOUT_SECS=300 |
| 115 export PATH=$GOMA_DIR:$PATH | 115 export PATH=$GOMA_DIR:$PATH |
| 116 } | 116 } |
| 117 | 117 |
| 118 # $@: make args. | 118 # $@: make args. |
| 119 # Use goma if possible; degrades to non-Goma if needed. | 119 # Use goma if possible; degrades to non-Goma if needed. |
| 120 function bb_goma_make { | 120 function bb_goma_make { |
| 121 # Disable Goma |
| 122 # Seems to work on "Android FYI" |
| 123 # http://build.chromium.org/p/chromium.fyi/builders/Chromium%20Linux%20Androi
d/builds/6421/steps/Compile/logs/stdio |
| 124 # and Linux trybots |
| 125 # http://build.chromium.org/p/chromium/builders/Linux%20x64/builds/23995/step
s/compile/logs/stdio |
| 126 # But not on Android trybots? |
| 127 # http://build.chromium.org/p/tryserver.chromium/builders/android/builds/2136
/steps/Compile/logs/stdio |
| 128 make -j${JOBS} "$@" |
| 129 return |
| 130 |
| 121 bb_setup_goma_internal | 131 bb_setup_goma_internal |
| 122 | 132 |
| 123 if [ "${GOMA_DIR}" = "" ]; then | 133 if [ "${GOMA_DIR}" = "" ]; then |
| 124 make -j${JOBS} "$@" | 134 make -j${JOBS} "$@" |
| 125 return | 135 return |
| 126 fi | 136 fi |
| 127 | 137 |
| 128 HOST_CC=$GOMA_DIR/gcc | 138 HOST_CC=$GOMA_DIR/gcc |
| 129 HOST_CXX=$GOMA_DIR/g++ | 139 HOST_CXX=$GOMA_DIR/g++ |
| 130 TARGET_CC=$(/bin/ls $ANDROID_TOOLCHAIN/*-gcc | head -n1) | 140 TARGET_CC=$(/bin/ls $ANDROID_TOOLCHAIN/*-gcc | head -n1) |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 function bb_run_tests_emulator { | 185 function bb_run_tests_emulator { |
| 176 echo "@@@BUILD_STEP Run Tests on an Emulator@@@" | 186 echo "@@@BUILD_STEP Run Tests on an Emulator@@@" |
| 177 build/android/run_tests.py -e --xvfb --verbose | 187 build/android/run_tests.py -e --xvfb --verbose |
| 178 } | 188 } |
| 179 | 189 |
| 180 # Run tests on an actual device. (Better have one plugged in!) | 190 # Run tests on an actual device. (Better have one plugged in!) |
| 181 function bb_run_tests { | 191 function bb_run_tests { |
| 182 echo "@@@BUILD_STEP Run Tests on actual hardware@@@" | 192 echo "@@@BUILD_STEP Run Tests on actual hardware@@@" |
| 183 build/android/run_tests.py --xvfb --verbose | 193 build/android/run_tests.py --xvfb --verbose |
| 184 } | 194 } |
| OLD | NEW |