|
|
(7 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| == Scm Plugin == | | == Scm Plugin == |
|
| |
|
| This plugin provides integration to Scm systems (Git, Svn...).
| | [https://github.com/rpm-software-management/mock/wiki/Plugin-Scm Moved to GitHub wiki] |
| | |
| This module does not use Plugin infrastructure of Mock, but is is provides as standalone package mock-scm so we dare to call it plugin.
| |
| | |
| == Configuration ==
| |
| | |
| In your config file insert the following lines:
| |
| | |
| | |
| config_opts['scm'] = True
| |
| config_opts['scm_opts']['method'] = 'git'
| |
| config_opts['scm_opts']['cvs_get'] = 'cvs -d /srv/cvs co SCM_BRN SCM_PKG'
| |
| config_opts['scm_opts']['git_get'] = 'git clone SCM_BRN git://localhost/SCM_PKG.git SCM_PKG'
| |
| config_opts['scm_opts']['svn_get'] = 'svn co file:///srv/svn/SCM_PKG/SCM_BRN SCM_PKG'
| |
| config_opts['scm_opts']['spec'] = 'SCM_PKG.spec'
| |
| config_opts['scm_opts']['ext_src_dir'] = '/dev/null'
| |
| config_opts['scm_opts']['write_tar'] = True
| |
| config_opts['scm_opts']['git_timestamps'] = True
| |
| config_opts['scm_opts']['exclude_vcs'] = True
| |
| config_opts['scm_opts']['package'] = 'mypkg'
| |
| config_opts['scm_opts']['branch'] = 'master'
| |
| | |
| While you can specify this in configuration file, this is less flexible and you may rather use command line options. E.g. <code>config_opts['scm_opts']['method'] = 'git'</code> is the same as <code>--scm-option method=git</code> or <code>config_opts['scm_opts']['branch'] = 'master'</code> is the same as <code>--scm-option branch=master</code>.
| |
| | |
| == Example ==
| |