Exemplo n.º 1
0
        "-DCMAKE_RC_COMPILER=/opt/mingw64/bin/x86_64-w64-mingw32-windres",
        "-DCMAKE_FIND_ROOT_PATH=/opt/mingw64",
        "-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY",
        "-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY",
        "-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER",
    ]
    ubuntu_packages = ["mingw64-x-gcc"]
    for ppa in ["tobydox/mingw-x-precise", "ubuntu-wine/ppa"]:
        check_call(["sudo", "add-apt-repository", "ppa:" + ppa, "-y"])

# Install dependencies.
os_name = os.environ["TRAVIS_OS_NAME"]
if os_name == "linux":
    # Install newer version of CMake.
    cmake_path = bootstrap.install_cmake(
        "cmake-3.1.1-Linux-x86_64.tar.gz", check_installed=False, download_dir=None, install_dir="."
    )
else:
    # Install Java as a workaround for bug
    # http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7131356.
    java_url = "https://support.apple.com/downloads/DL1572/en_US/javaforosx.dmg"
    with Downloader().download(java_url) as f:
        bootstrap.install_dmg(f)
    cmake_path = "cmake"

env = os.environ.copy()
env["PATH"] = "/usr/lib/ccache:" + env["PATH"]
check_call([cmake_path] + cmake_flags + ["."], env=env)
check_call(["make", "-j3"], env=env)

# Install test dependencies.
Exemplo n.º 2
0
# Install dependencies.
os_name = os.environ['TRAVIS_OS_NAME']
if os_name == 'linux':
  cmake_system = 'Linux-x86_64'
else:
  cmake_system = 'Darwin-x86_64'
  # Install Java as a workaround for bug
  # http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7131356.
  # java_url = 'https://support.apple.com/downloads/DL1572/en_US/javaforosx.dmg'
  # with Downloader().download(java_url) as f:
  #   bootstrap.install_dmg(f)

# Install newer version of CMake.
cmake_path = bootstrap.install_cmake(
  'cmake-3.4.0-{}.tar.gz'.format(cmake_system), check_installed=False,
  download_dir=None, install_dir='.')

env = os.environ.copy()
env['PATH'] = '/usr/lib/ccache:' + env['PATH']
check_call([cmake_path] + cmake_flags + ['.'], env=env)
check_call(['make', '-j3'], env=env)

# Install test dependencies.
if build == 'cross':
  check_call(['sudo', 'apt-get', 'install', 'wine1.7'])
  if check_output(['objdump', '-p', 'bin/libasl.dll']).find('write_sol_ASL') < 0:
    print('ASL symbols not exported')
    exit(1)

# Run tests.
Exemplo n.º 3
0
# Install dependencies.
os_name = os.environ['TRAVIS_OS_NAME']
if os_name == 'linux':
    cmake_system = 'Linux-x86_64'
else:
    cmake_system = 'Darwin-x86_64'
    # Install Java as a workaround for bug
    # http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7131356.
    # java_url = 'https://support.apple.com/downloads/DL1572/en_US/javaforosx.dmg'
    # with Downloader().download(java_url) as f:
    #   bootstrap.install_dmg(f)

# Install newer version of CMake.
cmake_path = bootstrap.install_cmake(
    'cmake-3.4.0-{}.tar.gz'.format(cmake_system),
    check_installed=False,
    download_dir=None,
    install_dir='.')

env = os.environ.copy()
env['PATH'] = '/usr/lib/ccache:' + env['PATH']
check_call([cmake_path] + cmake_flags + ['.'], env=env)
check_call(['make', '-j3'], env=env)

# Install test dependencies.
if build == 'cross':
    check_call(['sudo', 'apt-get', 'install', 'wine1.7'])
    if check_output(['objdump', '-p', 'bin/libasl.dll'
                     ]).find('write_sol_ASL') < 0:
        print('ASL symbols not exported')
        exit(1)
Exemplo n.º 4
0
# Install dependencies.
os_name = os.environ["TRAVIS_OS_NAME"]
if os_name == "linux":
    cmake_system = "Linux-x86_64"
else:
    cmake_system = "Darwin-universal"
    # Install Java as a workaround for bug
    # http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7131356.
    java_url = "https://support.apple.com/downloads/DL1572/en_US/javaforosx.dmg"
    with Downloader().download(java_url) as f:
        bootstrap.install_dmg(f)

# Install newer version of CMake.
cmake_path = bootstrap.install_cmake(
    "cmake-3.3.0-{}.tar.gz".format(cmake_system), check_installed=False, download_dir=None, install_dir="."
)

env = os.environ.copy()
env["PATH"] = "/usr/lib/ccache:" + env["PATH"]
check_call([cmake_path] + cmake_flags + ["."], env=env)
check_call(["make", "-j3"], env=env)

# Install test dependencies.
if build == "cross":
    check_call(["sudo", "apt-get", "install", "wine1.7"])
    if check_output(["objdump", "-p", "bin/libasl.dll"]).find("write_sol_ASL") < 0:
        print("ASL symbols not exported")
        exit(1)

# Run tests.