aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-08-05 19:00:23 -0400
committerJack Lloyd <[email protected]>2019-08-06 04:03:25 -0400
commitc64bed2d3b871089e3fea9d8496532fe5c7d8512 (patch)
tree9465c99bc9b60eefdf905004a1f9ea673065368e /src/scripts
parentd5b7496378fe25d732860bef23a15cef3de95310 (diff)
Run Python tests on Windows as well
GH #2059
Diffstat (limited to 'src/scripts')
-rwxr-xr-xsrc/scripts/ci_build.py34
1 files changed, 22 insertions, 12 deletions
diff --git a/src/scripts/ci_build.py b/src/scripts/ci_build.py
index 76a50a8c9..bb59245f5 100755
--- a/src/scripts/ci_build.py
+++ b/src/scripts/ci_build.py
@@ -224,13 +224,15 @@ def determine_flags(target, target_os, target_cpu, target_cc, cc_bin, ccache, ro
if target_os == 'windows' and target in ['shared', 'static']:
# ./configure.py needs extra hand-holding for boost on windows
- boost_root = os.environ['BOOST_ROOT']
- boost_libs = os.environ['BOOST_LIBRARYDIR']
- boost_system = os.environ['BOOST_SYSTEM_LIBRARY']
- flags += ['--with-boost',
- '--with-external-includedir', boost_root,
- '--with-external-libdir', boost_libs,
- '--boost-library-name', boost_system]
+ boost_root = os.environ.get('BOOST_ROOT')
+ boost_libs = os.environ.get('BOOST_LIBRARYDIR')
+ boost_system = os.environ.get('BOOST_SYSTEM_LIBRARY')
+
+ if boost_root and boost_libs and boost_system:
+ flags += ['--with-boost',
+ '--with-external-includedir', boost_root,
+ '--with-external-libdir', boost_libs,
+ '--boost-library-name', boost_system]
if target_os == 'linux':
flags += ['--with-lzma']
@@ -381,7 +383,10 @@ def main(args=None):
print('Skipping build COVERITY_SCAN_BRANCH set in environment')
return 0
- (options, args) = parse_args(args or sys.argv)
+ if args is None:
+ args = sys.argv
+ print("Invoked as '%s'" % (' '.join(args)))
+ (options, args) = parse_args(args)
if len(args) != 2:
print('Usage: %s [options] target' % (args[0]))
@@ -543,10 +548,15 @@ def main(args=None):
if target in ['shared', 'coverage']:
- if use_python2:
- cmds.append(['python2', '-b', python_tests])
- if use_python3:
- cmds.append(['python3', '-b', python_tests])
+ if options.os == 'windows':
+ if options.cpu == 'x86':
+ # Python on AppVeyor is a 32-bit binary so only test for 32-bit
+ cmds.append([py_interp, '-b', python_tests])
+ else:
+ if use_python2:
+ cmds.append(['python2', '-b', python_tests])
+ if use_python3:
+ cmds.append(['python3', '-b', python_tests])
if target in ['shared', 'static', 'bsi', 'nist']:
cmds.append(make_cmd + ['install'])