travis: trying using multiple python versions on linux

Change-Id: I11f4fca10f5c7648cc2a605ab678789bce7200c5
This commit is contained in:
Mark Charney 2017-06-13 11:56:58 -04:00
parent bb72495f54
commit c5bea9dfb3
2 changed files with 18 additions and 5 deletions

View File

@ -10,6 +10,8 @@ matrix:
include:
- compiler: gcc
os: linux
sudo: enabled
dist: trusty
- compiler: clang
os: osx

21
ci.py
View File

@ -2,8 +2,19 @@ import os
import platform
import subprocess
for size in ['ia32','x86-64']:
for link in ['','--shared']:
cmd = 'python mfile.py --build-dir=build host_cpu=%s %s test' % (size,link)
print(cmd)
subprocess.check_call(cmd, shell=True)
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)
return lst
return ['python']
for 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)
print(cmd)
subprocess.check_call(cmd, shell=True)