Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(932)

Side by Side Diff: scripts/slave/recipes/infra/build_conda_cipd_pkg.expected/win.json

Issue 1511383003: Add recipe to build CIPD package with relocatable Conda environment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: cleanup files Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 [
2 {
3 "cmd": [
4 "python",
5 "-u",
6 "\nimport os, sys\nfrom common import chromium_utils\n\nif os.path.exists( sys.argv[1]):\n chromium_utils.RemoveDirectory(sys.argv[1])\n",
7 "[SLAVE_BUILD]\\conda_staging_dir"
8 ],
9 "cwd": "[SLAVE_BUILD]",
10 "name": "rmtree cleaning staging dir",
11 "~followup_annotations": [
12 "@@@STEP_LOG_LINE@python.inline@@@@",
13 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@",
14 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils@@@",
15 "@@@STEP_LOG_LINE@python.inline@@@@",
16 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@",
17 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[ 1])@@@",
18 "@@@STEP_LOG_END@python.inline@@@"
19 ]
20 },
21 {
22 "cmd": [
23 "python",
24 "-u",
25 "[BUILD]\\scripts\\tools\\pycurl.py",
26 "https://repo.continuum.io/miniconda/Miniconda2-3.18.3-Windows-x86_64.exe" ,
27 "--outfile",
28 "[TMP_BASE]\\conda_tmp_1\\Miniconda2-3.18.3-Windows-x86_64.exe",
29 "--attempts",
30 "5"
31 ],
32 "cwd": "[SLAVE_BUILD]",
33 "name": "fetch miniconda installer"
34 },
35 {
36 "cmd": [
37 "[TMP_BASE]\\conda_tmp_1\\Miniconda2-3.18.3-Windows-x86_64.exe",
38 "/InstallationType=JustMe",
39 "/AddToPath=0",
40 "/RegisterPython=0",
41 "/S",
42 "/D=[SLAVE_BUILD]\\conda_staging_dir"
43 ],
44 "cwd": "[SLAVE_BUILD]",
45 "env": {
46 "PYTHONPATH": ""
47 },
48 "name": "install miniconda"
49 },
50 {
51 "cmd": [
52 "python",
53 "-u",
54 "\nimport os, sys\nfrom common import chromium_utils\n\nif os.path.exists( sys.argv[1]):\n chromium_utils.RemoveDirectory(sys.argv[1])\n",
55 "[TMP_BASE]\\conda_tmp_1"
56 ],
57 "cwd": "[SLAVE_BUILD]",
58 "name": "rmtree remove miniconda installer",
59 "~followup_annotations": [
60 "@@@STEP_LOG_LINE@python.inline@@@@",
61 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@",
62 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils@@@",
63 "@@@STEP_LOG_LINE@python.inline@@@@",
64 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@",
65 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[ 1])@@@",
66 "@@@STEP_LOG_END@python.inline@@@"
67 ]
68 },
69 {
70 "cmd": [
71 "[SLAVE_BUILD]\\conda_staging_dir\\Scripts\\conda.exe",
72 "install",
73 "matplotlib",
74 "--yes"
75 ],
76 "cwd": "[SLAVE_BUILD]",
77 "env": {
78 "PYTHONPATH": ""
79 },
80 "name": "conda install matplotlib"
81 },
82 {
83 "cmd": [
84 "[SLAVE_BUILD]\\conda_staging_dir\\Scripts\\conda.exe",
85 "install",
86 "numpy",
87 "--yes"
88 ],
89 "cwd": "[SLAVE_BUILD]",
90 "env": {
91 "PYTHONPATH": ""
92 },
93 "name": "conda install numpy"
94 },
95 {
96 "cmd": [
97 "[SLAVE_BUILD]\\conda_staging_dir\\Scripts\\conda.exe",
98 "install",
99 "scipy",
100 "--yes"
101 ],
102 "cwd": "[SLAVE_BUILD]",
103 "env": {
104 "PYTHONPATH": ""
105 },
106 "name": "conda install scipy"
107 },
108 {
109 "cmd": [
110 "python",
111 "-u",
112 "RECIPE_MODULE[cipd]\\resources\\bootstrap.py",
113 "--platform",
114 "windows-amd64",
115 "--dest-directory",
116 "[SLAVE_BUILD]\\cipd",
117 "--json-output",
118 "/path/to/tmp/json"
119 ],
120 "cwd": "[SLAVE_BUILD]",
121 "name": "install cipd",
122 "~followup_annotations": [
123 "@@@STEP_TEXT@cipd instance_id: 40-chars-fake-of-the-package-instance_id@@ @",
124 "@@@STEP_LOG_LINE@json.output@{@@@",
125 "@@@STEP_LOG_LINE@json.output@ \"executable\": \"[SLAVE_BUILD]\\\\cipd\\\ \cipd\", @@@",
126 "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-pa ckage-instance_id\"@@@",
127 "@@@STEP_LOG_LINE@json.output@}@@@",
128 "@@@STEP_LOG_END@json.output@@@"
129 ]
130 },
131 {
132 "cmd": [
133 "[SLAVE_BUILD]\\conda_staging_dir\\Scripts\\conda.exe",
134 "clean",
135 "--tarballs",
136 "--index-cache",
137 "--packages",
138 "--yes"
139 ],
140 "cwd": "[SLAVE_BUILD]",
141 "env": {
142 "PYTHONPATH": ""
143 },
144 "name": "conda clean --tarballs --index-cache --packages"
145 },
146 {
147 "cmd": [
148 "python",
149 "-u",
150 "RECIPE_MODULE[conda]\\resources\\butcher_conda.py",
151 "[SLAVE_BUILD]\\conda_staging_dir"
152 ],
153 "cwd": "[SLAVE_BUILD]",
154 "name": "make conda env location independent"
155 },
156 {
157 "cmd": [
158 "[SLAVE_BUILD]\\cipd\\cipd",
159 "pkg-build",
160 "--in",
161 "[SLAVE_BUILD]\\conda_staging_dir",
162 "--name",
163 "infra/conda_python/scientific/windows-amd64",
164 "--out",
165 "[SLAVE_BUILD]\\conda_python.cipd",
166 "--json-output",
167 "/path/to/tmp/json",
168 "--install-mode",
169 "copy"
170 ],
171 "cwd": "[SLAVE_BUILD]",
172 "name": "build windows-amd64",
173 "~followup_annotations": [
174 "@@@STEP_LOG_LINE@json.output@{@@@",
175 "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
176 "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the- package-instance_id\", @@@",
177 "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/conda_python/scient ific/windows-amd64\"@@@",
178 "@@@STEP_LOG_LINE@json.output@ }@@@",
179 "@@@STEP_LOG_LINE@json.output@}@@@",
180 "@@@STEP_LOG_END@json.output@@@"
181 ]
182 },
183 {
184 "cmd": [
185 "[SLAVE_BUILD]\\cipd\\cipd",
186 "pkg-register",
187 "[SLAVE_BUILD]\\conda_python.cipd",
188 "--json-output",
189 "/path/to/tmp/json",
190 "--service-account-json",
191 "C:\\creds\\service_accounts\\service-account-cipd-builder.json",
192 "--ref",
193 "latest",
194 "--tag",
195 "buildbot_build:chromium.testing.master/TestBuilder/571",
196 "--tag",
197 "conda:Miniconda2-3-18-3"
198 ],
199 "cwd": "[SLAVE_BUILD]",
200 "name": "register infra/conda_python/scientific/windows-amd64",
201 "~followup_annotations": [
202 "@@@STEP_LOG_LINE@json.output@{@@@",
203 "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
204 "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the- package-instance_id\", @@@",
205 "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/conda_python/scient ific/windows-amd64\"@@@",
206 "@@@STEP_LOG_LINE@json.output@ }@@@",
207 "@@@STEP_LOG_LINE@json.output@}@@@",
208 "@@@STEP_LOG_END@json.output@@@"
209 ]
210 },
211 {
212 "cmd": [
213 "python",
214 "-u",
215 "\nimport os\nimport sys\nos.remove(sys.argv[1])\n",
216 "[SLAVE_BUILD]\\conda_python.cipd"
217 ],
218 "cwd": "[SLAVE_BUILD]",
219 "name": "remove *.cipd file",
220 "~followup_annotations": [
221 "@@@STEP_LOG_LINE@python.inline@@@@",
222 "@@@STEP_LOG_LINE@python.inline@import os@@@",
223 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
224 "@@@STEP_LOG_LINE@python.inline@os.remove(sys.argv[1])@@@",
225 "@@@STEP_LOG_END@python.inline@@@"
226 ]
227 },
228 {
229 "cmd": [
230 "python",
231 "-u",
232 "\nimport os, sys\nfrom common import chromium_utils\n\nif os.path.exists( sys.argv[1]):\n chromium_utils.RemoveDirectory(sys.argv[1])\n",
233 "[SLAVE_BUILD]\\conda_staging_dir"
234 ],
235 "cwd": "[SLAVE_BUILD]",
236 "name": "rmtree removing conda",
237 "~followup_annotations": [
238 "@@@STEP_LOG_LINE@python.inline@@@@",
239 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@",
240 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils@@@",
241 "@@@STEP_LOG_LINE@python.inline@@@@",
242 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@",
243 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[ 1])@@@",
244 "@@@STEP_LOG_END@python.inline@@@"
245 ]
246 },
247 {
248 "name": "$result",
249 "recipe_result": null,
250 "status_code": 0
251 }
252 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698