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

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: add mathplot lib, depends on Qt :( 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 "/S",
39 "/D=[SLAVE_BUILD]\\conda_staging_dir"
40 ],
41 "cwd": "[SLAVE_BUILD]",
42 "env": {
43 "PYTHONPATH": ""
44 },
45 "name": "install miniconda"
46 },
47 {
48 "cmd": [
49 "python",
50 "-u",
51 "\nimport os, sys\nfrom common import chromium_utils\n\nif os.path.exists( sys.argv[1]):\n chromium_utils.RemoveDirectory(sys.argv[1])\n",
52 "[TMP_BASE]\\conda_tmp_1"
53 ],
54 "cwd": "[SLAVE_BUILD]",
55 "name": "rmtree remove miniconda installer",
56 "~followup_annotations": [
57 "@@@STEP_LOG_LINE@python.inline@@@@",
58 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@",
59 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils@@@",
60 "@@@STEP_LOG_LINE@python.inline@@@@",
61 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@",
62 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[ 1])@@@",
63 "@@@STEP_LOG_END@python.inline@@@"
64 ]
65 },
66 {
67 "cmd": [
68 "[SLAVE_BUILD]\\conda_staging_dir\\Scripts\\conda.exe",
69 "install",
70 "numpy",
71 "--yes"
72 ],
73 "cwd": "[SLAVE_BUILD]",
74 "env": {
75 "PYTHONPATH": ""
76 },
77 "name": "conda install numpy"
78 },
79 {
80 "cmd": [
81 "[SLAVE_BUILD]\\conda_staging_dir\\Scripts\\conda.exe",
82 "install",
83 "scipy",
84 "--yes"
85 ],
86 "cwd": "[SLAVE_BUILD]",
87 "env": {
88 "PYTHONPATH": ""
89 },
90 "name": "conda install scipy"
91 },
92 {
93 "cmd": [
94 "python",
95 "-u",
96 "RECIPE_MODULE[cipd]\\resources\\bootstrap.py",
97 "--platform",
98 "windows-amd64",
99 "--dest-directory",
100 "[SLAVE_BUILD]\\cipd",
101 "--json-output",
102 "/path/to/tmp/json"
103 ],
104 "cwd": "[SLAVE_BUILD]",
105 "name": "install cipd",
106 "~followup_annotations": [
107 "@@@STEP_TEXT@cipd instance_id: 40-chars-fake-of-the-package-instance_id@@ @",
108 "@@@STEP_LOG_LINE@json.output@{@@@",
109 "@@@STEP_LOG_LINE@json.output@ \"executable\": \"[SLAVE_BUILD]\\\\cipd\\\ \cipd\", @@@",
110 "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-pa ckage-instance_id\"@@@",
111 "@@@STEP_LOG_LINE@json.output@}@@@",
112 "@@@STEP_LOG_END@json.output@@@"
113 ]
114 },
115 {
116 "cmd": [
117 "[SLAVE_BUILD]\\conda_staging_dir\\Scripts\\conda.exe",
118 "clean",
119 "--tarballs",
120 "--index-cache",
121 "--packages",
122 "--yes"
123 ],
124 "cwd": "[SLAVE_BUILD]",
125 "env": {
126 "PYTHONPATH": ""
127 },
128 "name": "conda clean --tarballs --index-cache --packages"
129 },
130 {
131 "cmd": [
132 "python",
133 "-u",
134 "RECIPE_MODULE[conda]\\resources\\butcher_conda.py",
135 "[SLAVE_BUILD]\\conda_staging_dir"
136 ],
137 "cwd": "[SLAVE_BUILD]",
138 "name": "make conda env location independent"
139 },
140 {
141 "cmd": [
142 "[SLAVE_BUILD]\\cipd\\cipd",
143 "pkg-build",
144 "--in",
145 "[SLAVE_BUILD]\\conda_staging_dir",
146 "--name",
147 "infra/conda_python/windows-amd64",
148 "--out",
149 "[SLAVE_BUILD]\\conda_python.cipd",
150 "--json-output",
151 "/path/to/tmp/json",
152 "--install-mode",
153 "copy"
154 ],
155 "cwd": "[SLAVE_BUILD]",
156 "name": "build windows-amd64",
157 "~followup_annotations": [
158 "@@@STEP_LOG_LINE@json.output@{@@@",
159 "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
160 "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the- package-instance_id\", @@@",
161 "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/conda_python/window s-amd64\"@@@",
162 "@@@STEP_LOG_LINE@json.output@ }@@@",
163 "@@@STEP_LOG_LINE@json.output@}@@@",
164 "@@@STEP_LOG_END@json.output@@@"
165 ]
166 },
167 {
168 "cmd": [
169 "[SLAVE_BUILD]\\cipd\\cipd",
170 "pkg-register",
171 "[SLAVE_BUILD]\\conda_python.cipd",
172 "--json-output",
173 "/path/to/tmp/json",
174 "--service-account-json",
175 "C:\\creds\\service_accounts\\service-account-cipd-builder.json",
176 "--ref",
177 "latest",
178 "--tag",
179 "conda:Miniconda2-3-18-3",
180 "--tag",
181 "ts:2012-05-14T12-53"
182 ],
183 "cwd": "[SLAVE_BUILD]",
184 "name": "register infra/conda_python/windows-amd64",
185 "~followup_annotations": [
186 "@@@STEP_LOG_LINE@json.output@{@@@",
187 "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
188 "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the- package-instance_id\", @@@",
189 "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/conda_python/window s-amd64\"@@@",
190 "@@@STEP_LOG_LINE@json.output@ }@@@",
191 "@@@STEP_LOG_LINE@json.output@}@@@",
192 "@@@STEP_LOG_END@json.output@@@"
193 ]
194 },
195 {
196 "name": "$result",
197 "recipe_result": null,
198 "status_code": 0
199 }
200 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698