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

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

Issue 10823174: Roll Android SDK in android_tools repo to api version 16. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix up CL since patch 4 didn't upload everything. Created 8 years, 4 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
« no previous file with comments | « DEPS ('k') | build/android/buildbot_fyi_builder.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}"
(...skipping 25 matching lines...) Expand all
36 36
37 37
38 # Setup environment for Android build. Do not set ANDROID_SDK_ROOT so that 38 # Setup environment for Android build. Do not set ANDROID_SDK_ROOT so that
39 # default version from $ROOT/src/third_party/android_tools/ 39 # default version from $ROOT/src/third_party/android_tools/
40 # Called from bb_baseline_setup. 40 # Called from bb_baseline_setup.
41 # Moved to top of file so it is easier to find. 41 # Moved to top of file so it is easier to find.
42 function bb_setup_environment { 42 function bb_setup_environment {
43 export ANDROID_NDK_ROOT=/usr/local/google/android-ndk-r7 43 export ANDROID_NDK_ROOT=/usr/local/google/android-ndk-r7
44 } 44 }
45 45
46 # Install the build deps by running
47 # build/install-build-deps-android-sdk.sh. This may update local tools.
48 # $1: source root.
49 function bb_install_build_deps {
50 echo "@@@BUILD_STEP install build deps android@@@"
51 local script="$1/build/install-build-deps-android-sdk.sh"
52 if [[ -f "$script" ]]; then
53 "$script"
54 else
55 echo "@@@STEP_WARNINGS@@@"
56 echo "Cannot find $script; why?"
57 fi
58 }
59
60 # Function to force-green a bot. 46 # Function to force-green a bot.
61 function bb_force_bot_green_and_exit { 47 function bb_force_bot_green_and_exit {
62 echo "@@@BUILD_STEP Bot forced green.@@@" 48 echo "@@@BUILD_STEP Bot forced green.@@@"
63 exit 0 49 exit 0
64 } 50 }
65 51
66 function bb_run_gclient_hooks { 52 function bb_run_gclient_hooks {
67 echo "@@@BUILD_STEP runhooks android@@@" 53 echo "@@@BUILD_STEP runhooks android@@@"
68 gclient runhooks 54 gclient runhooks
69 } 55 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 echo "Build cannot continue." 88 echo "Build cannot continue."
103 echo "@@@STEP_FAILURE@@@" 89 echo "@@@STEP_FAILURE@@@"
104 return 1 90 return 1
105 fi 91 fi
106 done 92 done
107 93
108 if [ ! "$BUILDBOT_CLOBBER" = "" ]; then 94 if [ ! "$BUILDBOT_CLOBBER" = "" ]; then
109 NEED_CLOBBER=1 95 NEED_CLOBBER=1
110 fi 96 fi
111 97
112 # Setting up a new bot? Must do this before envsetup.sh
113 if [ ! -d "${ANDROID_NDK_ROOT}" ] ; then
114 bb_install_build_deps $SRC_ROOT
115 fi
116
117 . build/android/envsetup.sh 98 . build/android/envsetup.sh
118 99
119 if [ "$NEED_CLOBBER" -eq 1 ]; then 100 if [ "$NEED_CLOBBER" -eq 1 ]; then
120 echo "@@@BUILD_STEP Clobber@@@" 101 echo "@@@BUILD_STEP Clobber@@@"
121 rm -rf "${SRC_ROOT}"/out 102 rm -rf "${SRC_ROOT}"/out
122 if [ -e "${SRC_ROOT}"/out ] ; then 103 if [ -e "${SRC_ROOT}"/out ] ; then
123 echo "Clobber appeared to fail? ${SRC_ROOT}/out still exists." 104 echo "Clobber appeared to fail? ${SRC_ROOT}/out still exists."
124 echo "@@@STEP_WARNINGS@@@" 105 echo "@@@STEP_WARNINGS@@@"
125 fi 106 fi
126 fi 107 fi
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 --factory-properties "$FACTORY_PROPERTIES" \ 294 --factory-properties "$FACTORY_PROPERTIES" \
314 --build-properties "$BUILD_PROPERTIES" 295 --build-properties "$BUILD_PROPERTIES"
315 extract_exitcode=$? 296 extract_exitcode=$?
316 if (( $extract_exitcode > 1 )); then 297 if (( $extract_exitcode > 1 )); then
317 echo "@@@STEP_WARNINGS@@@" 298 echo "@@@STEP_WARNINGS@@@"
318 return 299 return
319 fi 300 fi
320 return $extract_exitcode 301 return $extract_exitcode
321 ) 302 )
322 } 303 }
OLDNEW
« no previous file with comments | « DEPS ('k') | build/android/buildbot_fyi_builder.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698