Changeset View
Changeset View
Standalone View
Standalone View
contrib/gitian-build.py
Show All 27 Lines | def setup(): | ||||
if not os.path.isdir('gitian-builder'): | if not os.path.isdir('gitian-builder'): | ||||
subprocess.check_call( | subprocess.check_call( | ||||
['git', 'clone', 'https://github.com/devrandom/gitian-builder.git']) | ['git', 'clone', 'https://github.com/devrandom/gitian-builder.git']) | ||||
if not os.path.isdir('bitcoin-abc'): | if not os.path.isdir('bitcoin-abc'): | ||||
subprocess.check_call( | subprocess.check_call( | ||||
['git', 'clone', 'https://github.com/Bitcoin-ABC/bitcoin-abc.git']) | ['git', 'clone', 'https://github.com/Bitcoin-ABC/bitcoin-abc.git']) | ||||
os.chdir('gitian-builder') | os.chdir('gitian-builder') | ||||
make_image_prog = ['bin/make-base-vm', | make_image_prog = ['bin/make-base-vm', | ||||
'--suite', 'bionic', '--arch', 'amd64'] | '--distro', 'debian', '--suite', 'buster', '--arch', 'amd64'] | ||||
if args.docker: | if args.docker: | ||||
make_image_prog += ['--docker'] | make_image_prog += ['--docker'] | ||||
elif not args.kvm: | elif not args.kvm: | ||||
make_image_prog += ['--lxc'] | make_image_prog += ['--lxc'] | ||||
subprocess.check_call(make_image_prog) | subprocess.check_call(make_image_prog) | ||||
os.chdir(workdir) | os.chdir(workdir) | ||||
if args.is_bionic and not args.kvm and not args.docker: | if args.is_bionic and not args.kvm and not args.docker: | ||||
subprocess.check_call( | subprocess.check_call( | ||||
▲ Show 20 Lines • Show All 268 Lines • Show Last 20 Lines |