build_dir = "build"

packages_to_install = \
[
    "ccache",
    "wget",
    "make",
    "binutils"
]

nci.install_packages_debian(packages_to_install)

working_dir = os.getcwd()
deploy_dir = os.path.join(os.environ['BUILD_DIR'], 'deploy', '')
nci.mkdir_p(deploy_dir)

mxe_path = "/mxe/mxe/"
# download the toolchain for windows
nci.call_with_err_code(
    "wget --progress=dot:giga https://files.nebl.io/dependencies/mxe_x86_64.tar.gz"
)
# extract it
nci.call_with_err_code("tar -xf mxe_x86_64.tar.gz")
# move it to /mxe, where it was built the first time
nci.call_with_err_code("sudo mv mxe /")

# add mxe to PATH
mxe_bin_path = os.path.join(mxe_path, "usr/bin/")
os.environ["PATH"] += (":" + mxe_bin_path)
示例#2
0
import os
import urllib2
import multiprocessing as mp
import bfx_ci_libs as nci

nci.setup_travis_or_gh_actions_env_vars()

working_dir = os.getcwd()
deploy_dir = os.path.join(os.environ['BUILD_DIR'],'deploy', '')

# If this is a Travis PR, bail out instead of just wasting 45 mins running
if (os.environ.get('TRAVIS_BUILD_DIR') is not None and os.environ['TRAVIS_PULL_REQUEST'] != 'false'):
  print('Pull Requests are not built for RPi since ccache cannot be used!')
  exit(0)

nci.mkdir_p(deploy_dir)
os.chdir(deploy_dir)

build_target = ''
build_target_alt = ''
if(os.environ['target_v'] == "rpi_daemon"):
  build_target = 'bfxd'
  build_target_alt = 'bfxd'
elif(os.environ['target_v'] == "rpi_wallet_test"):
  build_target = 'tests-bfx-qt'
  build_target_alt = 'tests-BFX-Qt'
else:
  build_target = 'bfx-qt'
  build_target_alt = 'BFX-Qt'

# Install docker
示例#3
0
    "libcurl4-openssl-dev",
    "libldap2-dev",
    "libidn11-dev",
    "librtmp-dev",
    "lib32z1",
    "libx32z1",
    "libx32z1-dev",
    "zlib1g",
    "zlib1g-dev",
    "lib32z1-dev",
    "libsodium-dev"
]

nci.install_packages_debian(packages_to_install)

nci.mkdir_p(deploy_dir)
os.chdir(build_dir)

nci.call_with_err_code('ccache -s')

nci.call_with_err_code('python ../build_scripts/CompileOpenSSL-Linux.py')
nci.call_with_err_code('python ../build_scripts/CompileCurl-Linux.py')
nci.call_with_err_code('python ../build_scripts/CompileBoost-Linux.py')

os.environ['PKG_CONFIG_PATH'] = os.path.join(working_dir, build_dir,
                                             'curl_build/lib/pkgconfig/')
os.environ['OPENSSL_INCLUDE_PATH'] = os.path.join(working_dir, build_dir,
                                                  'openssl_build/include/')
os.environ['OPENSSL_LIB_PATH'] = os.path.join(working_dir, build_dir,
                                              'openssl_build/lib/')
示例#4
0
import os
import urllib2
import multiprocessing as mp
import bfx_ci_libs as nci

nci.setup_travis_or_gh_actions_env_vars()

working_dir = os.getcwd()
deploy_dir = os.path.join(os.environ['BUILD_DIR'], 'deploy', '')

nci.mkdir_p(deploy_dir)
os.chdir(deploy_dir)

build_target = ''
build_target_alt = ''
if (os.environ['target_v'] == "linux_daemon"):
    build_target = 'bfxd'
    build_target_alt = 'bfxd'
elif (os.environ['target_v'] == "linux_wallet_test"):
    build_target = 'tests-bfx-qt'
    build_target_alt = 'tests-BFX-Qt'
    os.chdir(os.environ['BUILD_DIR'])
    # download test data
    nci.call_with_err_code(
        'wget --progress=dot:giga https://files.nebl.io/test_data_mainnet.tar.xz -O ./wallet/test/data/test_data_mainnet.tar.xz'
    )
    nci.call_with_err_code(
        'wget --progress=dot:giga https://files.nebl.io/test_data_testnet.tar.xz -O ./wallet/test/data/test_data_testnet.tar.xz'
    )
    nci.call_with_err_code(
        'tar -xJvf ./wallet/test/data/test_data_mainnet.tar.xz -C ./wallet/test/data'