Revision 33ad9a0d ci/snf-ci
b/ci/snf-ci | ||
---|---|---|
1 | 1 |
#!/usr/bin/env python |
2 | 2 |
|
3 |
# Invalid name for type module. pylint: disable-msg=C0103 |
|
4 |
|
|
3 | 5 |
""" |
6 |
Continuous Integration script for Synnefo. |
|
4 | 7 |
""" |
8 |
|
|
5 | 9 |
import os |
6 | 10 |
from utils import SynnefoCI |
7 | 11 |
from optparse import OptionParser |
... | ... | |
45 | 49 |
ALL_CMDS]) |
46 | 50 |
|
47 | 51 |
|
48 |
def main(): |
|
52 |
def main(): # Too many branches. pylint: disable-msg=R0912 |
|
53 |
"""Parse command line options and run the specified actions""" |
|
49 | 54 |
parser = OptionParser(usage=USAGE) |
50 | 55 |
parser.add_option("--conf", dest="config_file", default=None, |
51 |
help="Configuration file for SynnefoCI script"),
|
|
56 |
help="Configuration file for SynnefoCI script") |
|
52 | 57 |
parser.add_option("-c", "--cloud", dest="kamaki_cloud", default=None, |
53 |
help="Use specified cloud, as is in .kamakirc"),
|
|
58 |
help="Use specified cloud, as is in .kamakirc") |
|
54 | 59 |
parser.add_option("-f", "--flavor", dest="flavor", default=None, |
55 | 60 |
help="Name of flavor to use for the server.") |
56 | 61 |
parser.add_option("-i", "--image", dest="image", default=None, |
Also available in: Unified diff