7e4a718ba3
Some checks failed
rpcrypto-build / build (Debug, hisiv500.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Debug, host-afl.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Debug, host.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Debug, mips64el-linux-gnuabi64.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Debug, mipsel-openwrt-linux-musl.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Debug, mipsel-openwrt-linux.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Release, hisiv500.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Release, host-afl.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Release, host.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Release, mips64el-linux-gnuabi64.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Release, mipsel-openwrt-linux-musl.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Release, mipsel-openwrt-linux.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Failing after 39s
31 lines
925 B
Python
Executable File
31 lines
925 B
Python
Executable File
#!/usr/bin/env python
|
|
# Update the coverity branch from the master branch.
|
|
# It is not done automatically because Coverity Scan limits
|
|
# the number of submissions per day.
|
|
|
|
from __future__ import print_function
|
|
import shutil, tempfile
|
|
from subprocess import check_output, STDOUT
|
|
|
|
class Git:
|
|
def __init__(self, dir):
|
|
self.dir = dir
|
|
|
|
def __call__(self, *args):
|
|
output = check_output(['git'] + list(args), cwd=self.dir, stderr=STDOUT)
|
|
print(output)
|
|
return output
|
|
|
|
dir = tempfile.mkdtemp()
|
|
try:
|
|
git = Git(dir)
|
|
git('clone', '-b', 'coverity', 'git@github.com:fmtlib/fmt.git', dir)
|
|
output = git('merge', '-X', 'theirs', '--no-commit', 'origin/master')
|
|
if 'Fast-forward' not in output:
|
|
git('reset', 'HEAD', '.travis.yml')
|
|
git('checkout', '--', '.travis.yml')
|
|
git('commit', '-m', 'Update coverity branch')
|
|
git('push')
|
|
finally:
|
|
shutil.rmtree(dir)
|