Revision 85bcc8da

/dev/null
1
#!/usr/bin/env python
2

  
3
"""
4
Download Synnefo packages
5
"""
6

  
7
from utils import SynnefoCI
8

  
9

  
10
def fetch_packages():
11
    """Download Synnefo packages"""
12
    synnefo_ci = SynnefoCI()
13
    synnefo_ci.fetch_packages()
14

  
15

  
16
if __name__ == "__main__":
17
    fetch_packages()
b/ci/snf-ci
26 26

  
27 27
command:
28 28
    * %s Create the slave server
29
    * %s: Create in Synnefo packages in created server
29
    * %s: Create debian packages for Synnefo in the created server
30 30
    * %s: Deploy Synnefo in created server
31 31
    * %s: Run Synnefo unittests
32 32
    * %s: Run snf-burnin in the deployed Synnefo
......
50 50
                      help="Name of flavor to use for the server.")
51 51
    parser.add_option("-i", "--image", dest="image", default=None,
52 52
                      help="UUID of image to use for the server.")
53
    parser.add_option("--fetch-packages", dest="fetch_packages",
54
                      action="store_true", default=False,
55
                      help="Download the debian packages that were created"
56
                           " during the '%s' step." % BUILD_SYNNEFO_CMD)
53 57

  
54 58
    (options, args) = parser.parse_args()
55 59

  
......
84 88
        synnefo_ci.clone_repo()
85 89
    if getattr(options, BUILD_SYNNEFO_CMD, False):
86 90
        synnefo_ci.build_synnefo()
91
    if options.fetch_packages:
92
        synnefo_ci.fetch_packages()
87 93
    if getattr(options, DEPLOY_SYNNEFO_CMD, False):
88 94
        synnefo_ci.deploy_synnefo()
89 95
    if getattr(options, TEST_SYNNEFO_CMD, False):
b/ci/utils.py
519 519

  
520 520
        self.logger.debug("Untar packages file %s" % pkgs_file)
521 521
        os.system("cd %s; tar xzf synnefo_build-area.tgz" % pkgs_dir)
522
        self.logger.info("Downloaded debian packages to %s" %
523
                         _green(pkgs_dir))

Also available in: Unified diff