mirror of
https://github.com/RPCSX/xed.git
synced 2024-11-23 11:39:40 +00:00
travis: trying using multiple python versions on linux
Change-Id: I11f4fca10f5c7648cc2a605ab678789bce7200c5
This commit is contained in:
parent
bb72495f54
commit
c5bea9dfb3
@ -10,6 +10,8 @@ matrix:
|
||||
include:
|
||||
- compiler: gcc
|
||||
os: linux
|
||||
sudo: enabled
|
||||
dist: trusty
|
||||
- compiler: clang
|
||||
os: osx
|
||||
|
||||
|
21
ci.py
21
ci.py
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user