]>
git.proxmox.com Git - ceph.git/blob - ceph/src/fmt/support/update-coverity-branch.py
2 # Update the coverity branch from the master branch.
3 # It is not done automatically because Coverity Scan limits
4 # the number of submissions per day.
6 from __future__
import print_function
7 import shutil
, tempfile
8 from subprocess
import check_output
, STDOUT
11 def __init__(self
, dir):
14 def __call__(self
, *args
):
15 output
= check_output(['git'] + list(args
), cwd
=self
.dir, stderr
=STDOUT
)
19 dir = tempfile
.mkdtemp()
22 git('clone', '-b', 'coverity', 'git@github.com:fmtlib/fmt.git', dir)
23 output
= git('merge', '-X', 'theirs', '--no-commit', 'origin/master')
24 if 'Fast-forward' not in output
:
25 git('reset', 'HEAD', '.travis.yml')
26 git('checkout', '--', '.travis.yml')
27 git('commit', '-m', 'Update coverity branch')