From 908f1219e11c25542fb3f590e7ea1867d10e1404 Mon Sep 17 00:00:00 2001 From: Mark Charney Date: Tue, 13 Jun 2017 12:02:17 -0400 Subject: [PATCH] travis: split build subdirs Change-Id: Ieef2d110c7ebab0f50363d35ecdebeae244c8384 --- ci.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ci.py b/ci.py index 10bb2e1..0061cfa 100644 --- a/ci.py +++ b/ci.py @@ -6,15 +6,16 @@ def get_python_cmds(): if platform.system() == 'Linux': for pyver in ['2.7','3.5.2']: pycmd = '/opt/python/{}/bin/python'.format(pyver) - lst.append(pycmd) + lst.append((pyver,pycmd)) return lst - return ['python'] + return [('dfltpython','python')] -for pycmd in get_python_cmds(): +for pyver,pycmd in get_python_cmds(): for size in ['ia32','x86-64']: - for link in ['','--shared']: - cmd = '{} mfile.py --build-dir=build host_cpu={} {} test'.format(pycmd,size,link) + for linkkind,link in [('dfltlink',''),('dynamic','--shared')]: + build_dir = '{}-{}-{}'.format(pyver, size, linkkind) + cmd = '{} mfile.py --build-dir=build-{} host_cpu={} {} test'.format(pycmd,build_dir,size,link) print(cmd) subprocess.check_call(cmd, shell=True)