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