#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import neblio_ci_libs as nci

build_dir = "build"

packages_to_install = \
[
"qt5-default",
"qt5-qmake",
"qtbase5-dev-tools",
"qttools5-dev-tools",
"build-essential",
"libboost-dev",
"libboost-system-dev",
"libboost-filesystem-dev",
"libboost-program-options-dev",
"libboost-thread-dev",
"libboost-regex-dev",
"libssl-dev",
"libdb++-dev",
"libminiupnpc-dev",
"libqrencode-dev",
"libcurl4-openssl-dev",
"libldap2-dev",
"libidn11-dev",
"librtmp-dev"
]

nci.install_packages_debian(packages_to_install)

nci.mkdir_p(build_dir)
os.chdir(build_dir)
nci.call_with_err_code('qmake "USE_UPNP=1" "USE_QRCODE=0" "RELEASE=1" "NEBLIO_CONFIG += Tests" ../neblio-wallet.pro')
nci.call_with_err_code("make -j3")

# run tests
nci.call_with_err_code("./wallet/test/neblio-tests")

print("")
print("")
print("Building finished successfully.")
print("")

@@ -594,16 +594,452 @@
 ld_dir)%0A
+%0Anci.call_with_err_code('python $TRAVIS_BUILD_DIR/build_scripts/CompileOpenSSL-Linux.py')%0Anci.call_with_err_code('python $TRAVIS_BUILD_DIR/build_scripts/CompileCurl-Linux.py')%0A%0Aos.environ%5B'PKG_CONFIG_PATH'%5D = os.path.join(working_dir, 'curl_build/lib/pkgconfig/')%0Aos.environ%5B'OPENSSL_INCLUDE_PATH'%5D = os.path.join(working_dir, '/openssl_build/include/')%0Aos.environ%5B'OPENSSL_LIB_PATH'%5D = os.path.join(working_dir, 'openssl_build/lib/')%0A%0A
 nci.call

Build OpenSSL and cURL for neblio-Qt as well