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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 ) | 305 ) |
306 } | 306 } |
307 | 307 |
308 # Runs the license checker for the WebView build. | 308 # Runs the license checker for the WebView build. |
309 function bb_check_webview_licenses { | 309 function bb_check_webview_licenses { |
310 echo "@@@BUILD_STEP Check licenses for WebView@@@" | 310 echo "@@@BUILD_STEP Check licenses for WebView@@@" |
311 ( | 311 ( |
312 set +e | 312 set +e |
313 cd "${SRC_ROOT}" | 313 cd "${SRC_ROOT}" |
314 python android_webview/tools/webview_licenses.py scan | 314 python android_webview/tools/webview_licenses.py scan |
315 local license_exit_code = $? | 315 local license_exit_code=$? |
316 if [[ license_exit_code -ne 0 ]]; then | 316 if [[ license_exit_code -ne 0 ]]; then |
317 echo "@@@STEP_FAILURE@@@" | 317 echo "@@@STEP_FAILURE@@@" |
318 fi | 318 fi |
319 return $license_exit_code | 319 return $license_exit_code |
320 ) | 320 ) |
321 } | 321 } |
OLD | NEW |