Commit b7c58c48 authored by Rob Nelson's avatar Rob Nelson

pylint run, autopep8

parent faffe85c
Pipeline #23 skipped
......@@ -4,37 +4,38 @@ import traceback
from buildtools import cmd, log, os_utils
from buildtools.repo.git import GitRepository
boost_dir = os.path.join('/tmp', 'jenkins', 'boost-sourcemod-socket')
os_utils.ensureDirExists(os.path.dirname(boost_dir), noisy=True)
if os.path.isdir(boost_dir)
with os_utils.Chdir(boost_dir):
cmd(['git','pull','origin','master'], echo=True, show_output=True, critical=True)
if os.path.isdir(boost_dir):
with os_utils.Chdir(boost_dir):
cmd(['git', 'pull', 'origin', 'master'], echo=True, show_output=True, critical=True)
else:
cmd(['git','clone','https://github.com/boostorg/boost.git', boost_dir], echo=True, show_output=True, critical=True)
cmd(['git', 'clone', 'https://github.com/boostorg/boost.git', boost_dir], echo=True, show_output=True, critical=True)
with os_utils.Chdir(boost_dir):
bootstrap_args=[
'--with-libraries=thread,system',
'--libdir=/tmp/jenkins/lib/socket-boost' ,
'--includedir=/tmp/jenkins/include/socket-boost',
'--exec-prefix=/tmp/jenkins'
]
cmd(['bash','./bootstrap.sh']+bootstrap_args, echo=True, show_output=True, critical=True)
b2_args=[
'cflags=-m32',
'cxxflags=-m32',
'address-model=32',
'threading=multi',
'architecture=x86',
'instruction-set=i686'
]
cmd(['./b2','./bootstrap.sh', '--with-libraries=thread,system'], echo=True, show_output=True, critical=True)
sm_dir = os.path.join('/tmp','jenkins','sourcemod-socket')
bootstrap_args = [
'--with-libraries=thread,system',
'--libdir=/tmp/jenkins/lib/socket-boost',
'--includedir=/tmp/jenkins/include/socket-boost',
'--exec-prefix=/tmp/jenkins'
]
cmd(['bash', './bootstrap.sh'] + bootstrap_args, echo=True, show_output=True, critical=True)
b2_args = [
'cflags=-m32',
'cxxflags=-m32',
'address-model=32',
'threading=multi',
'architecture=x86',
'instruction-set=i686'
]
cmd(['./b2', './bootstrap.sh', '--with-libraries=thread,system'], echo=True, show_output=True, critical=True)
sm_dir = os.path.join('/tmp', 'jenkins', 'sourcemod-socket')
os_utils.ensureDirExists(os.path.dirname(sm_dir), noisy=True)
if os.path.isdir(sm_dir)
with os_utils.Chdir(sm_dir):
cmd(['git','pull','origin','master'], echo=True, show_output=True, critical=True)
if os.path.isdir(sm_dir):
with os_utils.Chdir(sm_dir):
cmd(['git', 'pull', 'origin', 'master'], echo=True, show_output=True, critical=True)
else:
cmd(['git','clone','https://github.com/alliedmodders/sourcemod.git', sm_dir], echo=True, show_output=True, critical=True)
cmd(['git', 'clone', 'https://github.com/alliedmodders/sourcemod.git', sm_dir], echo=True, show_output=True, critical=True)
with os_utils.Chdir(sm_dir):
os_utils.ensureDirExists('build', noisy=True)
cmd(['bash', 'tools/checkout-deps.sh'], echo=True, show_output=True)
......@@ -43,5 +44,5 @@ with os_utils.Chdir(sm_dir):
env = os_utils.BuildEnv()
env.appendTo('CFLAGS', '-Wno-sign-compare', delim=' ')
env.appendTo('CXXFLAGS', '-Wno-sign-compare', delim=' ')
cmd(['python', 'configure.py'], echo=True, show_output=True, critical=True env=env)
cmd(['python', 'configure.py'], echo=True, show_output=True, critical=True, env=env)
cmd(['ambuild'], echo=True, show_output=True, critical=True, env=env)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment