| 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 function bb_run_tests { | 248 function bb_run_tests { |
| 249 echo "@@@BUILD_STEP Run Tests on actual hardware@@@" | 249 echo "@@@BUILD_STEP Run Tests on actual hardware@@@" |
| 250 build/android/run_tests.py --xvfb --verbose --apk=True | 250 build/android/run_tests.py --xvfb --verbose --apk=True |
| 251 } | 251 } |
| 252 | 252 |
| 253 # Zip and archive a build. | 253 # Zip and archive a build. |
| 254 function bb_zip_build { | 254 function bb_zip_build { |
| 255 echo "@@@BUILD_STEP Zip build@@@" | 255 echo "@@@BUILD_STEP Zip build@@@" |
| 256 python ../../../../scripts/slave/zip_build.py \ | 256 python ../../../../scripts/slave/zip_build.py \ |
| 257 --src-dir "$SRC_ROOT" \ | 257 --src-dir "$SRC_ROOT" \ |
| 258 --exclude-files "lib.target" \ |
| 258 --factory-properties "$FACTORY_PROPERTIES" \ | 259 --factory-properties "$FACTORY_PROPERTIES" \ |
| 259 --build-properties "$BUILD_PROPERTIES" | 260 --build-properties "$BUILD_PROPERTIES" |
| 260 } | 261 } |
| 261 | 262 |
| 262 # Download and extract a build. | 263 # Download and extract a build. |
| 263 function bb_extract_build { | 264 function bb_extract_build { |
| 264 echo "@@@BUILD_STEP Download and extract build@@@" | 265 echo "@@@BUILD_STEP Download and extract build@@@" |
| 265 if [[ -z $FACTORY_PROPERTIES || -z $BUILD_PROPERTIES ]]; then | 266 if [[ -z $FACTORY_PROPERTIES || -z $BUILD_PROPERTIES ]]; then |
| 266 return 1 | 267 return 1 |
| 267 fi | 268 fi |
| 268 | 269 |
| 269 python ../../../../scripts/slave/extract_build.py \ | 270 python ../../../../scripts/slave/extract_build.py \ |
| 270 --build-dir "$SRC_ROOT" \ | 271 --build-dir "$SRC_ROOT" \ |
| 271 --build-output-dir "out" \ | 272 --build-output-dir "out" \ |
| 272 --target Release \ | 273 --target Release \ |
| 273 --factory-properties "$FACTORY_PROPERTIES" \ | 274 --factory-properties "$FACTORY_PROPERTIES" \ |
| 274 --build-properties "$BUILD_PROPERTIES" | 275 --build-properties "$BUILD_PROPERTIES" |
| 275 } | 276 } |
| OLD | NEW |