_run_cmd("python/bin/pyomo install-extras", shell=True) elif _run_cmd is subprocess.check_output: output = _run_cmd("python/bin/pyomo install-extras", shell=True) print(output.encode('utf-8', 'replace').decode('utf-8')) else: assert False # Test os.environ['TEST_PACKAGES'] = ' '.join([ 'pyomo.checker', 'pyomo.common', 'pyomo.core', 'pyomo.environ', 'pyomo.opt', 'pyomo.repn', 'pyomo.scripting', 'pyomo.solvers', 'pyomo.util', 'pyomo.version' ]) print("-" * 60) print("Performing tests") print("-" * 60) driver.perform_tests('pyomo', coverage=True, omit=coverage_omit) elif config == "nonpysp": os.environ['TEST_PACKAGES'] = ' '.join(x for x in pyomo_packages if x != 'pyomo.pysp') driver.perform_build('pyomo', coverage=True, omit=coverage_omit, config='pyomo_all.ini') elif config == "parallel": os.environ['NOSE_PROCESS_TIMEOUT'] = '1800' # 30 minutes driver.perform_build('pyomo', cat='parallel', coverage=True, omit=coverage_omit,
print(output) except: if hasattr(output, 'encode'): output = output.encode('utf-8','replace') print(output.decode('utf-8')) else: assert False # Test os.environ['TEST_PACKAGES'] = ' '.join([ 'pyomo.checker','pyomo.common','pyomo.core','pyomo.environ', 'pyomo.opt','pyomo.repn','pyomo.scripting','pyomo.solvers', 'pyomo.util','pyomo.version']) print("-" * 60) print("Performing tests") print("-" * 60) driver.perform_tests('pyomo', coverage=True, omit=coverage_omit) elif config == "nonpysp": os.environ['TEST_PACKAGES'] = ' '.join( x for x in pyomo_packages if x != 'pyomo.pysp' ) driver.perform_build('pyomo', coverage=True, omit=coverage_omit, config='pyomo_all.ini') elif config == "fragile": driver.perform_build('pyomo', coverage=True, omit=coverage_omit, config='pyomo_all.ini', cat='fragile') elif config == "nonfragile": driver.perform_build('pyomo', coverage=True, omit=coverage_omit, config='pyomo_all.ini', cat='!fragile')