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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
115 bb_setup_goma_internal | 115 bb_setup_goma_internal |
116 ninja -C out/$BUILDTYPE -j120 -l20 $TARGET | 116 ninja -C out/$BUILDTYPE -j120 -l20 $TARGET |
117 bb_stop_goma_internal | 117 bb_stop_goma_internal |
118 } | 118 } |
119 | 119 |
120 # Compile step | 120 # Compile step |
121 function bb_compile { | 121 function bb_compile { |
122 # This must be named 'compile' for CQ. | 122 # This must be named 'compile' for CQ. |
123 echo "@@@BUILD_STEP compile@@@" | 123 echo "@@@BUILD_STEP compile@@@" |
124 gclient runhooks | 124 gclient runhooks |
125 bb_goma_ninja All | 125 python /b/build/scripts/slave/compile.py \ |
Isaac (away)
2013/05/21 23:38:38
Looks great!
1) Can we remove the bash and put th
| |
126 --build-tool "ninja" \ | |
127 --compiler "goma" \ | |
128 --target "$BUILDTYPE" \ | |
129 --goma-dir "$GOMA_DIR" \ | |
130 --build-args "All" | |
126 } | 131 } |
127 | 132 |
128 # Experimental compile step; does not turn the tree red if it fails. | 133 # Experimental compile step; does not turn the tree red if it fails. |
129 function bb_compile_experimental { | 134 function bb_compile_experimental { |
130 # Linking DumpRenderTree appears to hang forever? | 135 # Linking DumpRenderTree appears to hang forever? |
131 EXPERIMENTAL_TARGETS="android_experimental" | 136 EXPERIMENTAL_TARGETS="android_experimental" |
132 for target in ${EXPERIMENTAL_TARGETS} ; do | 137 for target in ${EXPERIMENTAL_TARGETS} ; do |
133 echo "@@@BUILD_STEP Experimental Compile $target @@@" | 138 echo "@@@BUILD_STEP Experimental Compile $target @@@" |
134 set +e | 139 set +e |
135 bb_goma_ninja "${target}" | 140 bb_goma_ninja "${target}" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
221 ) | 226 ) |
222 } | 227 } |
223 | 228 |
224 # Retrieve a packed json property using python | 229 # Retrieve a packed json property using python |
225 function bb_get_json_prop { | 230 function bb_get_json_prop { |
226 local JSON="$1" | 231 local JSON="$1" |
227 local PROP="$2" | 232 local PROP="$2" |
228 | 233 |
229 python -c "import json; print json.loads('$JSON').get('$PROP', '')" | 234 python -c "import json; print json.loads('$JSON').get('$PROP', '')" |
230 } | 235 } |
OLD | NEW |