--- a/checker.py Sun Jul 03 23:15:56 2016 +0800
+++ b/checker.py Sun Jul 03 23:27:49 2016 +0800
+def prevalidate(config):
+ if 'url' not in config:
+ print("# C&O config doesn't have 'url' defined.")
+ if 'scm' not in config:
+ print("# C&O config doesn't have 'scm' defined.")
+ elif config['scm'] != 'hg':
+ print("# C&O checker doesn't support {} yet.".format(config['scm']))
+ print('# C&O job failed')
print('# C&O job started: {}'.format(now()))
tmp = mkdtemp(prefix='candolint.')
- if 'url' not in config:
- print("# C&O config doesn't have url defined.")
- print('# C&O job failed')
+ ok = prevalidate(config)
print('# C&O task: clone')