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

Side by Side Diff: scripts/slave/recipe_modules/cipd/example.py

Issue 1193813004: cipd recipe_module (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: coverage -> 100% Created 5 years, 5 months 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
OLDNEW
(Empty)
1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 DEPS = [
6 'file',
7 'path',
8 'platform',
9 'step',
10 'cipd',
11 ]
12
13 def RunSteps(api):
14 # Prepare files.
15 temp = api.path.mkdtemp('cipd-example')
16
17 api.cipd.install_client("install cipd")
18
19 pkgs = {
20 "infra/monitoring/dispatcher/linux-amd64": {
21 'version': '7f751b2237df2fdf3c1405be00590fefffbaea2d',
22 },
23 }
24
25 api.cipd.ensure_installed(temp.join('bin'), pkgs)
26
27 api.cipd.platform_tag()
28
29 # Clean up.
30 api.file.rmtree('cleanup', temp)
31
32
33 def GenTests(api):
34 yield api.test('basic')
35 yield api.test('install-failed') + api.step_data('install cipd', retcode=1)
36
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/cipd/api.py ('k') | scripts/slave/recipe_modules/cipd/example.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698