Chromium Code Reviews

Side by Side Diff: scripts/slave/recipe_modules/android/example.expected/basic.json

Issue 1115453002: Recipes: make cwd default to slave_build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: rebase Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
1 [ 1 [
2 { 2 {
3 "cmd": [ 3 "cmd": [
4 "python", 4 "python",
5 "-u", 5 "-u",
6 "[BUILD]/scripts/slave/bot_update.py", 6 "[BUILD]/scripts/slave/bot_update.py",
7 "--master", 7 "--master",
8 "chromium.linux", 8 "chromium.linux",
9 "--builder", 9 "--builder",
10 "Android Builder", 10 "Android Builder",
11 "--slave", 11 "--slave",
12 "totallyanandroid-m1", 12 "totallyanandroid-m1",
13 "--spec", 13 "--spec",
14 "cache_dir = None\nsolutions = [{'custom_vars': {'googlecode_url': 'svn:// svn-mirror.golo.chromium.org/%s', 'nacl_trunk': 'svn://svn-mirror.golo.chromium. org/native_client/trunk', 'sourceforge_url': 'svn://svn-mirror.golo.chromium.org /%(repo)s', 'webkit_trunk': 'svn://svn-mirror.golo.chromium.org/blink/trunk'}, ' deps_file': 'DEPS', 'managed': True, 'name': 'src', 'url': 'svn://svn-mirror.gol o.chromium.org/chrome/trunk/src'}]\ntarget_os = ['android']", 14 "cache_dir = None\nsolutions = [{'custom_vars': {'googlecode_url': 'svn:// svn-mirror.golo.chromium.org/%s', 'nacl_trunk': 'svn://svn-mirror.golo.chromium. org/native_client/trunk', 'sourceforge_url': 'svn://svn-mirror.golo.chromium.org /%(repo)s', 'webkit_trunk': 'svn://svn-mirror.golo.chromium.org/blink/trunk'}, ' deps_file': 'DEPS', 'managed': True, 'name': 'src', 'url': 'svn://svn-mirror.gol o.chromium.org/chrome/trunk/src'}]\ntarget_os = ['android']",
15 "--root", 15 "--root",
16 "src", 16 "src",
17 "--revision_mapping_file", 17 "--revision_mapping_file",
18 "{}", 18 "{}",
19 "--output_json", 19 "--output_json",
20 "/path/to/tmp/json", 20 "/path/to/tmp/json",
21 "--revision", 21 "--revision",
22 "src@123456" 22 "src@123456"
23 ], 23 ],
24 "cwd": "[SLAVE_BUILD]",
24 "name": "bot_update", 25 "name": "bot_update",
25 "~followup_annotations": [ 26 "~followup_annotations": [
26 "@@@STEP_TEXT@Some step text@@@", 27 "@@@STEP_TEXT@Some step text@@@",
27 "@@@STEP_LOG_LINE@json.output@{@@@", 28 "@@@STEP_LOG_LINE@json.output@{@@@",
28 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@", 29 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
29 "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@", 30 "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@",
30 "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"src\", @@@", 31 "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"src\", @@@",
31 "@@@STEP_LOG_LINE@json.output@ \"properties\": {}, @@@", 32 "@@@STEP_LOG_LINE@json.output@ \"properties\": {}, @@@",
32 "@@@STEP_LOG_LINE@json.output@ \"root\": \"src\", @@@", 33 "@@@STEP_LOG_LINE@json.output@ \"root\": \"src\", @@@",
33 "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@", 34 "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@",
34 "@@@STEP_LOG_LINE@json.output@}@@@", 35 "@@@STEP_LOG_LINE@json.output@}@@@",
35 "@@@STEP_LOG_END@json.output@@@" 36 "@@@STEP_LOG_END@json.output@@@"
36 ] 37 ]
37 }, 38 },
38 { 39 {
39 "cmd": [ 40 "cmd": [
40 "python", 41 "python",
41 "-u", 42 "-u",
42 "[DEPOT_TOOLS]/gclient.py", 43 "[DEPOT_TOOLS]/gclient.py",
43 "runhooks" 44 "runhooks"
44 ], 45 ],
46 "cwd": "[SLAVE_BUILD]",
45 "env": { 47 "env": {
46 "GYP_CHROMIUM_NO_ACTION": "1" 48 "GYP_CHROMIUM_NO_ACTION": "1"
47 }, 49 },
48 "name": "gclient runhooks" 50 "name": "gclient runhooks"
49 }, 51 },
50 { 52 {
51 "cmd": [ 53 "cmd": [
52 "python", 54 "python",
53 "-u", 55 "-u",
54 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os. path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n", 56 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os. path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n",
55 "[SLAVE_BUILD]/android-src", 57 "[SLAVE_BUILD]/android-src",
56 "511" 58 "511"
57 ], 59 ],
60 "cwd": "[SLAVE_BUILD]",
58 "name": "makedirs android source root", 61 "name": "makedirs android source root",
59 "~followup_annotations": [ 62 "~followup_annotations": [
60 "@@@STEP_LOG_LINE@python.inline@@@@", 63 "@@@STEP_LOG_LINE@python.inline@@@@",
61 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", 64 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
62 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", 65 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
63 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", 66 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
64 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", 67 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
65 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", 68 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
66 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@", 69 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
67 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", 70 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
(...skipping 25 matching lines...)
93 "name": "repo sync" 96 "name": "repo sync"
94 }, 97 },
95 { 98 {
96 "cmd": [ 99 "cmd": [
97 "[BUILD]/scripts/slave/android/with_lunch", 100 "[BUILD]/scripts/slave/android/with_lunch",
98 "[SLAVE_BUILD]/android-src", 101 "[SLAVE_BUILD]/android-src",
99 "nakasi-userdebug", 102 "nakasi-userdebug",
100 "RECIPE_MODULE[android]/resources/update_default_props.py", 103 "RECIPE_MODULE[android]/resources/update_default_props.py",
101 "ro.adb.secure=0" 104 "ro.adb.secure=0"
102 ], 105 ],
106 "cwd": "[SLAVE_BUILD]",
103 "name": "update /root/default.prop" 107 "name": "update /root/default.prop"
104 }, 108 },
105 { 109 {
106 "cmd": [ 110 "cmd": [
107 "[SLAVE_BUILD]/src/android_webview/buildbot/deps_whitelist.py", 111 "[SLAVE_BUILD]/src/android_webview/buildbot/deps_whitelist.py",
108 "--method", 112 "--method",
109 "android_rsync_build", 113 "android_rsync_build",
110 "--path-to-deps", 114 "--path-to-deps",
111 "[SLAVE_BUILD]/src/DEPS", 115 "[SLAVE_BUILD]/src/DEPS",
112 "--output-json", 116 "--output-json",
113 "/path/to/tmp/json" 117 "/path/to/tmp/json"
114 ], 118 ],
119 "cwd": "[SLAVE_BUILD]",
115 "name": "calculate blacklist", 120 "name": "calculate blacklist",
116 "~followup_annotations": [ 121 "~followup_annotations": [
117 "@@@STEP_LOG_LINE@json.output@{@@@", 122 "@@@STEP_LOG_LINE@json.output@{@@@",
118 "@@@STEP_LOG_LINE@json.output@ \"blacklist\": [@@@", 123 "@@@STEP_LOG_LINE@json.output@ \"blacklist\": [@@@",
119 "@@@STEP_LOG_LINE@json.output@ \"blacklist/project/1\", @@@", 124 "@@@STEP_LOG_LINE@json.output@ \"blacklist/project/1\", @@@",
120 "@@@STEP_LOG_LINE@json.output@ \"blacklist/project/2\"@@@", 125 "@@@STEP_LOG_LINE@json.output@ \"blacklist/project/2\"@@@",
121 "@@@STEP_LOG_LINE@json.output@ ]@@@", 126 "@@@STEP_LOG_LINE@json.output@ ]@@@",
122 "@@@STEP_LOG_LINE@json.output@}@@@", 127 "@@@STEP_LOG_LINE@json.output@}@@@",
123 "@@@STEP_LOG_END@json.output@@@" 128 "@@@STEP_LOG_END@json.output@@@"
124 ] 129 ]
125 }, 130 },
126 { 131 {
127 "cmd": [ 132 "cmd": [
128 "rsync", 133 "rsync",
129 "-rav", 134 "-rav",
130 "--delete", 135 "--delete",
131 "--delete-excluded", 136 "--delete-excluded",
132 "--exclude=.svn", 137 "--exclude=.svn",
133 "--exclude=.git", 138 "--exclude=.git",
134 "--exclude=blacklist/project/1", 139 "--exclude=blacklist/project/1",
135 "--exclude=blacklist/project/2", 140 "--exclude=blacklist/project/2",
136 "[SLAVE_BUILD]/src/", 141 "[SLAVE_BUILD]/src/",
137 "[SLAVE_BUILD]/android-src/external/chromium_org" 142 "[SLAVE_BUILD]/android-src/external/chromium_org"
138 ], 143 ],
144 "cwd": "[SLAVE_BUILD]",
139 "name": "rsync chromium_org" 145 "name": "rsync chromium_org"
140 }, 146 },
141 { 147 {
142 "cmd": [ 148 "cmd": [
143 "[BUILD]/scripts/slave/android/with_lunch", 149 "[BUILD]/scripts/slave/android/with_lunch",
144 "[SLAVE_BUILD]/android-src", 150 "[SLAVE_BUILD]/android-src",
145 "nakasi-userdebug", 151 "nakasi-userdebug",
146 "[BUILD]/scripts/slave/compile.py", 152 "[BUILD]/scripts/slave/compile.py",
147 "CC=foo CXX=bar", 153 "CC=foo CXX=bar",
148 "droid", 154 "droid",
149 "--build-dir", 155 "--build-dir",
150 "[SLAVE_BUILD]", 156 "[SLAVE_BUILD]",
151 "--src-dir", 157 "--src-dir",
152 "[SLAVE_BUILD]/android-src", 158 "[SLAVE_BUILD]/android-src",
153 "--build-tool", 159 "--build-tool",
154 "make-android", 160 "make-android",
155 "--verbose" 161 "--verbose"
156 ], 162 ],
157 "cwd": "[SLAVE_BUILD]", 163 "cwd": "[SLAVE_BUILD]",
158 "name": "compile android" 164 "name": "compile android"
159 } 165 }
160 ] 166 ]
OLDNEW

Powered by Google App Engine