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

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

Issue 10832364: Run the WebView license checker on the android FYI builder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 TARGET_CC="$TARGET_CC" \ 176 TARGET_CC="$TARGET_CC" \
177 TARGET_CXX="$TARGET_CXX" \ 177 TARGET_CXX="$TARGET_CXX" \
178 CC.host="$HOST_CC" \ 178 CC.host="$HOST_CC" \
179 CXX.host="$HOST_CXX" \ 179 CXX.host="$HOST_CXX" \
180 CC.target="$TARGET_CC" \ 180 CC.target="$TARGET_CC" \
181 CXX.target="$TARGET_CXX" \ 181 CXX.target="$TARGET_CXX" \
182 LINK.target="$TARGET_CXX" \ 182 LINK.target="$TARGET_CXX" \
183 COMMON_JAVAC="$COMMON_JAVAC" \ 183 COMMON_JAVAC="$COMMON_JAVAC" \
184 "$@" 184 "$@"
185 185
186 local make_exit_status=$? 186 local make_exit_code=$?
187 bb_stop_goma_internal 187 bb_stop_goma_internal
188 return $make_exit_status 188 return $make_exit_code
189 } 189 }
190 190
191 # Compile step 191 # Compile step
192 function bb_compile { 192 function bb_compile {
193 # This must be named 'compile', not 'Compile', for CQ interaction. 193 # This must be named 'compile', not 'Compile', for CQ interaction.
194 # Talk to maruel for details. 194 # Talk to maruel for details.
195 echo "@@@BUILD_STEP compile@@@" 195 echo "@@@BUILD_STEP compile@@@"
196 bb_goma_make 196 bb_goma_make
197 } 197 }
198 198
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 # code 1. We disable halt on error mode and return normally 275 # code 1. We disable halt on error mode and return normally
276 # unless the python tool returns 1. 276 # unless the python tool returns 1.
277 ( 277 (
278 set +e 278 set +e
279 python ../../../../scripts/slave/extract_build.py \ 279 python ../../../../scripts/slave/extract_build.py \
280 --build-dir "$SRC_ROOT" \ 280 --build-dir "$SRC_ROOT" \
281 --build-output-dir "out" \ 281 --build-output-dir "out" \
282 --target Release \ 282 --target Release \
283 --factory-properties "$FACTORY_PROPERTIES" \ 283 --factory-properties "$FACTORY_PROPERTIES" \
284 --build-properties "$BUILD_PROPERTIES" 284 --build-properties "$BUILD_PROPERTIES"
285 extract_exitcode=$? 285 local extract_exit_code=$?
286 if (( $extract_exitcode > 1 )); then 286 if (( $extract_exit_code > 1 )); then
287 echo "@@@STEP_WARNINGS@@@" 287 echo "@@@STEP_WARNINGS@@@"
288 return 288 return
289 fi 289 fi
290 return $extract_exitcode 290 return $extract_exit_code
291 ) 291 )
292 } 292 }
293 293
294 # Reboot all phones and wait for them to start back up 294 # Reboot all phones and wait for them to start back up
295 # Does not break build if a phone fails to restart 295 # Does not break build if a phone fails to restart
296 function bb_reboot_phones { 296 function bb_reboot_phones {
297 echo "@@@BUILD_STEP Rebooting phones@@@" 297 echo "@@@BUILD_STEP Rebooting phones@@@"
298 ( 298 (
299 set +e 299 set +e
300 cd $CHROME_SRC/build/android/pylib; 300 cd $CHROME_SRC/build/android/pylib;
301 for DEVICE in $(adb_get_devices); do 301 for DEVICE in $(adb_get_devices); do
302 python -c "import android_commands;\ 302 python -c "import android_commands;\
303 android_commands.AndroidCommands(device='$DEVICE').Reboot(True)" & 303 android_commands.AndroidCommands(device='$DEVICE').Reboot(True)" &
304 done 304 done
305 wait 305 wait
306 ) 306 )
307 } 307 }
308
309 # Runs the license checker for the WebView build.
310 function bb_check_webview_licenses {
311 echo "@@@BUILD_STEP Check licenses for WebView@@@"
312 (
313 set +e
314 cd "${SRC_ROOT}"
315 python android_webview/tools/webview_licenses.py scan
316 local license_exit_code = $?
317 if [[ license_exit_code -ne 0 ]]; then
318 echo "@@@STEP_FAILURE@@@"
Peter Beverloo 2012/08/17 11:40:45 To confirm: this means that the builder turns red
319 fi
320 return $license_exit_code
Peter Beverloo 2012/08/17 11:40:45 nit: The return doesn't seem necessary, as it isn'
321 )
322 }
OLDNEW
« no previous file with comments | « no previous file | build/android/buildbot_fyi_builder.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698