ci_install: Only install codecov when needed.
This commit is contained in:
parent
66afdbaf16
commit
4e48e3d725
@ -43,6 +43,10 @@ TRAVIS_OS = os.environ.get('TRAVIS_OS_NAME', None)
|
|||||||
INSTALL_PYQT = TESTENV in ('py34', 'py35', 'unittests-nodisp', 'vulture',
|
INSTALL_PYQT = TESTENV in ('py34', 'py35', 'unittests-nodisp', 'vulture',
|
||||||
'pylint')
|
'pylint')
|
||||||
XVFB = TRAVIS_OS == 'linux' and TESTENV == 'py34'
|
XVFB = TRAVIS_OS == 'linux' and TESTENV == 'py34'
|
||||||
|
pip_packages = ['tox']
|
||||||
|
if TESTENV in ['py34', 'py35']:
|
||||||
|
pip_packages.append('codecov')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def apt_get(args):
|
def apt_get(args):
|
||||||
@ -80,7 +84,8 @@ if 'APPVEYOR' in os.environ:
|
|||||||
subprocess.check_call([r'C:\install-PyQt5.exe', '/S'])
|
subprocess.check_call([r'C:\install-PyQt5.exe', '/S'])
|
||||||
|
|
||||||
print("Installing tox...")
|
print("Installing tox...")
|
||||||
subprocess.check_call([r'C:\Python34\Scripts\pip', 'install', 'tox'])
|
subprocess.check_call([r'C:\Python34\Scripts\pip', 'install'] +
|
||||||
|
pip_packages)
|
||||||
|
|
||||||
print("Linking Python...")
|
print("Linking Python...")
|
||||||
with open(r'C:\Windows\system32\python3.bat', 'w') as f:
|
with open(r'C:\Windows\system32\python3.bat', 'w') as f:
|
||||||
@ -90,7 +95,7 @@ if 'APPVEYOR' in os.environ:
|
|||||||
elif TRAVIS_OS == 'linux':
|
elif TRAVIS_OS == 'linux':
|
||||||
print("travis_fold:start:ci_install")
|
print("travis_fold:start:ci_install")
|
||||||
print("Installing via pip...")
|
print("Installing via pip...")
|
||||||
subprocess.check_call(['sudo', 'pip', 'install', 'tox', 'codecov'])
|
subprocess.check_call(['sudo', 'pip', 'install'] + pip_packages)
|
||||||
|
|
||||||
print("Installing packages...")
|
print("Installing packages...")
|
||||||
pkgs = []
|
pkgs = []
|
||||||
@ -124,7 +129,7 @@ elif TRAVIS_OS == 'osx':
|
|||||||
brew(['install'] + pkgs)
|
brew(['install'] + pkgs)
|
||||||
|
|
||||||
print("Installing tox/codecov...")
|
print("Installing tox/codecov...")
|
||||||
subprocess.check_call(['sudo', 'pip3', 'install', 'tox', 'codecov'])
|
subprocess.check_call(['sudo', 'pip3', 'install'] + pip_packages)
|
||||||
|
|
||||||
check_setup('python3')
|
check_setup('python3')
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user