OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "cmd": [ | 3 "cmd": [ |
4 "python", | 4 "python", |
5 "-u", | 5 "-u", |
6 "\nimport os, sys\nfrom common import chromium_utils # Error? See https://
crbug.com/584783.\n\npath = sys.argv[1]\nif os.path.exists(path):\n for p in (o
s.path.join(path, x) for x in os.listdir(path)):\n if os.path.isdir(p):\n
chromium_utils.RemoveDirectory(p)\n else:\n os.unlink(p)\n", | 6 "\nimport os, sys\nfrom common import chromium_utils # Error? See https://
crbug.com/584783.\n\npath = sys.argv[1]\nif os.path.exists(path):\n for p in (o
s.path.join(path, x) for x in os.listdir(path)):\n if os.path.isdir(p):\n
chromium_utils.RemoveDirectory(p)\n else:\n os.unlink(p)\n", |
7 "[SLAVE_BUILD]" | 7 "[CWD]" |
8 ], | 8 ], |
9 "cwd": "[SLAVE_BUILD]", | |
10 "name": "rmcontents everything", | 9 "name": "rmcontents everything", |
11 "~followup_annotations": [ | 10 "~followup_annotations": [ |
12 "@@@STEP_LOG_LINE@python.inline@@@@", | 11 "@@@STEP_LOG_LINE@python.inline@@@@", |
13 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@", | 12 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@", |
14 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error?
See https://crbug.com/584783.@@@", | 13 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error?
See https://crbug.com/584783.@@@", |
15 "@@@STEP_LOG_LINE@python.inline@@@@", | 14 "@@@STEP_LOG_LINE@python.inline@@@@", |
16 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", | 15 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", |
17 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(path):@@@", | 16 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(path):@@@", |
18 "@@@STEP_LOG_LINE@python.inline@ for p in (os.path.join(path, x) for x in
os.listdir(path)):@@@", | 17 "@@@STEP_LOG_LINE@python.inline@ for p in (os.path.join(path, x) for x in
os.listdir(path)):@@@", |
19 "@@@STEP_LOG_LINE@python.inline@ if os.path.isdir(p):@@@", | 18 "@@@STEP_LOG_LINE@python.inline@ if os.path.isdir(p):@@@", |
20 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(p)@@@
", | 19 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(p)@@@
", |
21 "@@@STEP_LOG_LINE@python.inline@ else:@@@", | 20 "@@@STEP_LOG_LINE@python.inline@ else:@@@", |
22 "@@@STEP_LOG_LINE@python.inline@ os.unlink(p)@@@", | 21 "@@@STEP_LOG_LINE@python.inline@ os.unlink(p)@@@", |
23 "@@@STEP_LOG_END@python.inline@@@" | 22 "@@@STEP_LOG_END@python.inline@@@" |
24 ] | 23 ] |
25 }, | 24 }, |
26 { | 25 { |
27 "cmd": [ | 26 "cmd": [ |
28 "python", | 27 "python", |
29 "-u", | 28 "-u", |
30 "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", | 29 "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", |
31 "--path", | 30 "--path", |
32 "[SLAVE_BUILD]/flutter", | 31 "[CWD]/flutter", |
33 "--url", | 32 "--url", |
34 "https://chromium.googlesource.com/external/github.com/flutter/flutter" | 33 "https://chromium.googlesource.com/external/github.com/flutter/flutter" |
35 ], | 34 ], |
36 "cwd": "[SLAVE_BUILD]", | |
37 "name": "git setup" | 35 "name": "git setup" |
38 }, | 36 }, |
39 { | 37 { |
40 "cmd": [ | 38 "cmd": [ |
41 "git", | 39 "git", |
42 "retry", | 40 "retry", |
43 "fetch", | 41 "fetch", |
44 "origin", | 42 "origin", |
45 "master", | 43 "master", |
46 "--recurse-submodules" | 44 "--recurse-submodules" |
47 ], | 45 ], |
48 "cwd": "[SLAVE_BUILD]/flutter", | 46 "cwd": "[CWD]/flutter", |
49 "name": "git fetch" | 47 "name": "git fetch" |
50 }, | 48 }, |
51 { | 49 { |
52 "cmd": [ | 50 "cmd": [ |
53 "git", | 51 "git", |
54 "checkout", | 52 "checkout", |
55 "-f", | 53 "-f", |
56 "FETCH_HEAD" | 54 "FETCH_HEAD" |
57 ], | 55 ], |
58 "cwd": "[SLAVE_BUILD]/flutter", | 56 "cwd": "[CWD]/flutter", |
59 "name": "git checkout" | 57 "name": "git checkout" |
60 }, | 58 }, |
61 { | 59 { |
62 "cmd": [ | 60 "cmd": [ |
63 "git", | 61 "git", |
64 "rev-parse", | 62 "rev-parse", |
65 "HEAD" | 63 "HEAD" |
66 ], | 64 ], |
67 "cwd": "[SLAVE_BUILD]/flutter", | 65 "cwd": "[CWD]/flutter", |
68 "name": "read revision", | 66 "name": "read revision", |
69 "stdout": "/path/to/tmp/", | 67 "stdout": "/path/to/tmp/", |
70 "~followup_annotations": [ | 68 "~followup_annotations": [ |
71 "@@@STEP_TEXT@<br/>checked out 'deadbeef'<br/>@@@", | 69 "@@@STEP_TEXT@<br/>checked out 'deadbeef'<br/>@@@", |
72 "@@@SET_BUILD_PROPERTY@got_revision@\"deadbeef\"@@@" | 70 "@@@SET_BUILD_PROPERTY@got_revision@\"deadbeef\"@@@" |
73 ] | 71 ] |
74 }, | 72 }, |
75 { | 73 { |
76 "cmd": [ | 74 "cmd": [ |
77 "git", | 75 "git", |
78 "clean", | 76 "clean", |
79 "-f", | 77 "-f", |
80 "-d", | 78 "-d", |
81 "-x" | 79 "-x" |
82 ], | 80 ], |
83 "cwd": "[SLAVE_BUILD]/flutter", | 81 "cwd": "[CWD]/flutter", |
84 "name": "git clean" | 82 "name": "git clean" |
85 }, | 83 }, |
86 { | 84 { |
87 "cmd": [ | 85 "cmd": [ |
88 "git", | 86 "git", |
89 "submodule", | 87 "submodule", |
90 "sync" | 88 "sync" |
91 ], | 89 ], |
92 "cwd": "[SLAVE_BUILD]/flutter", | 90 "cwd": "[CWD]/flutter", |
93 "name": "submodule sync" | 91 "name": "submodule sync" |
94 }, | 92 }, |
95 { | 93 { |
96 "cmd": [ | 94 "cmd": [ |
97 "git", | 95 "git", |
98 "submodule", | 96 "submodule", |
99 "update", | 97 "update", |
100 "--init", | 98 "--init", |
101 "--recursive" | 99 "--recursive" |
102 ], | 100 ], |
103 "cwd": "[SLAVE_BUILD]/flutter", | 101 "cwd": "[CWD]/flutter", |
104 "name": "submodule update" | 102 "name": "submodule update" |
105 }, | 103 }, |
106 { | 104 { |
107 "cmd": [ | 105 "cmd": [ |
108 "[SLAVE_BUILD]/flutter/infra/download_android_tools.py" | 106 "[CWD]/flutter/infra/download_android_tools.py" |
109 ], | 107 ], |
110 "cwd": "[SLAVE_BUILD]", | |
111 "name": "download android tools" | 108 "name": "download android tools" |
112 }, | 109 }, |
113 { | 110 { |
114 "cmd": [ | 111 "cmd": [ |
115 "python", | 112 "python", |
116 "-u", | 113 "-u", |
117 "[BUILD]/scripts/slave/ios/find_xcode.py", | 114 "[ROOT]/b/build/scripts/slave/ios/find_xcode.py", |
118 "--json-file", | 115 "--json-file", |
119 "/path/to/tmp/json" | 116 "/path/to/tmp/json" |
120 ], | 117 ], |
121 "cwd": "[SLAVE_BUILD]", | |
122 "env": { | 118 "env": { |
123 "ANDROID_HOME": "[SLAVE_BUILD]/flutter/infra/android_tools", | 119 "ANDROID_HOME": "[CWD]/flutter/infra/android_tools", |
124 "PATH": "[SLAVE_BUILD]/flutter/bin:[SLAVE_BUILD]/flutter/bin/cache/dart-sd
k/bin:%(PATH)s", | 120 "PATH": "[CWD]/flutter/bin:[CWD]/flutter/bin/cache/dart-sdk/bin:%(PATH)s", |
125 "PUB_CACHE": "[SLAVE_BUILD]/.pub-cache" | 121 "PUB_CACHE": "[CWD]/.pub-cache" |
126 }, | 122 }, |
127 "name": "enumerate_xcode_installations", | 123 "name": "enumerate_xcode_installations", |
128 "~followup_annotations": [ | 124 "~followup_annotations": [ |
129 "@@@STEP_LOG_LINE@json.output@{@@@", | 125 "@@@STEP_LOG_LINE@json.output@{@@@", |
130 "@@@STEP_LOG_LINE@json.output@ \"installations\": {}@@@", | 126 "@@@STEP_LOG_LINE@json.output@ \"installations\": {}@@@", |
131 "@@@STEP_LOG_LINE@json.output@}@@@", | 127 "@@@STEP_LOG_LINE@json.output@}@@@", |
132 "@@@STEP_LOG_END@json.output@@@" | 128 "@@@STEP_LOG_END@json.output@@@" |
133 ] | 129 ] |
134 }, | 130 }, |
135 { | 131 { |
136 "name": "$result", | 132 "name": "$result", |
137 "reason": "Xcode version 7 or above not found", | 133 "reason": "Xcode version 7 or above not found", |
138 "status_code": 1 | 134 "status_code": 1 |
139 } | 135 } |
140 ] | 136 ] |
OLD | NEW |