Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(879)

Side by Side Diff: build/android/buildbot_functions.sh

Issue 10533144: Buildbot enhancements: Builder/Tester split (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | build/android/buildbot_fyi.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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}"
11 JOBS="${JOBS:-4}" 11 JOBS="${JOBS:-4}"
12 12
13 # Clobber build? Overridden by bots with BUILDBOT_CLOBBER. 13 # Clobber build? Overridden by bots with BUILDBOT_CLOBBER.
14 NEED_CLOBBER="${NEED_CLOBBER:-0}" 14 NEED_CLOBBER="${NEED_CLOBBER:-0}"
15 15
16 # Setup environment for Android build. 16 # Setup environment for Android build.
17 # Called from bb_baseline_setup. 17 # Called from bb_baseline_setup.
18 # Moved to top of file so it is easier to find. 18 # Moved to top of file so it is easier to find.
19 function bb_setup_environment { 19 function bb_setup_environment {
20 export ANDROID_SDK_ROOT=/usr/local/google/android-sdk-linux 20 export ANDROID_SDK_ROOT=/usr/local/google/android-sdk-linux
21 export ANDROID_NDK_ROOT=/usr/local/google/android-ndk-r7 21 export ANDROID_NDK_ROOT=/usr/local/google/android-ndk-r7
22 } 22 }
23 23
24 # Install the build deps by running 24 # Install the build deps by running
25 # build/install-build-deps-android-sdk.sh. This may update local tools. 25 # build/install-build-deps-android-sdk.sh. This may update local tools.
26 # $1: source root. 26 # $1: source root.
27 function bb_install_build_deps { 27 function bb_install_build_deps {
28 echo "@@@BUILD_STEP install build deps android@@@" 28 echo "@@@BUILD_STEP install build deps android@@@"
29 local script="$1/build/install-build-deps-android-sdk.sh" 29 local script="${1-$SRC_ROOT}/build/install-build-deps-android-sdk.sh"
John Grabowski 2012/06/18 18:20:04 Args to this function say you must pass in a SRC_R
Isaac (away) 2012/06/18 18:59:46 Was trying to keep backwards compatibility for scr
30 if [[ -f "$script" ]]; then 30 if [[ -f "$script" ]]; then
31 "$script" 31 "$script"
32 else 32 else
33 echo "Cannot find $script; why?" 33 echo "Cannot find $script; why?"
34 fi 34 fi
35 } 35 }
36 36
37 # Function to force-green a bot. 37 # Function to force-green a bot.
38 function bb_force_bot_green_and_exit { 38 function bb_force_bot_green_and_exit {
39 echo "@@@BUILD_STEP Bot forced green.@@@" 39 echo "@@@BUILD_STEP Bot forced green.@@@"
40 exit 0 40 exit 0
41 } 41 }
42 42
43 # Basic setup for all bots to run after a source tree checkout. 43 # Basic setup for all bots to run after a source tree checkout.
44 # $1: source root. 44 # $1: source root.
45 function bb_baseline_setup { 45 function bb_baseline_setup {
46 echo "@@@BUILD_STEP cd into source root@@@" 46 echo "@@@BUILD_STEP cd into source root@@@"
47 SRC_ROOT="$1" 47 export SRC_ROOT=${1-$SRC_ROOT}
John Grabowski 2012/06/18 18:20:04 ditto
48 if [ ! -d "${SRC_ROOT}" ] ; then 48 if [ ! -d "${SRC_ROOT}" ] ; then
49 echo "Please specify a valid source root directory as an arg" 49 echo "Please specify a valid source root directory as an arg"
50 echo '@@@STEP_FAILURE@@@' 50 echo '@@@STEP_FAILURE@@@'
51 return 1 51 return 1
52 fi 52 fi
53 cd $SRC_ROOT 53 cd $SRC_ROOT
54 54
55 if [ ! -f build/android/envsetup.sh ] ; then 55 if [ ! -f build/android/envsetup.sh ] ; then
56 echo "No envsetup.sh" 56 echo "No envsetup.sh"
57 echo "@@@STEP_FAILURE@@@" 57 echo "@@@STEP_FAILURE@@@"
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 function bb_run_tests { 230 function bb_run_tests {
231 echo "@@@BUILD_STEP Run Tests on actual hardware@@@" 231 echo "@@@BUILD_STEP Run Tests on actual hardware@@@"
232 build/android/run_tests.py --xvfb --verbose 232 build/android/run_tests.py --xvfb --verbose
233 } 233 }
234 234
235 # Run APK tests on an actual device. 235 # Run APK tests on an actual device.
236 function bb_run_apk_tests { 236 function bb_run_apk_tests {
237 echo "@@@BUILD_STEP Run APK Tests on actual hardware@@@" 237 echo "@@@BUILD_STEP Run APK Tests on actual hardware@@@"
238 build/android/run_tests.py --xvfb --verbose --apk=True 238 build/android/run_tests.py --xvfb --verbose --apk=True
239 } 239 }
240
241 # Zip and archive a build
242 function bb_zip_build {
243 echo "@@@BUILD_STEP Zip build@@@"
244 python ../../../../scripts/slave/zip_build.py
245 }
246
247 # Download and extract a build
248 function bb_extract_build {
249 echo "@@@BUILD_STEP Download and extract build@@@"
250 python ../../../../scripts/slave/extract_build.py \
251 --no-append-dir \
252 --build-dir out \
253 --target Release \
254 --build-url "$BUILDBOT_BUILD_URL"
255 }
OLDNEW
« no previous file with comments | « no previous file | build/android/buildbot_fyi.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698