parent
d094a495cc
commit
439c00f32a
@ -22,6 +22,7 @@ env:
|
|||||||
- TESTENV=pyroma
|
- TESTENV=pyroma
|
||||||
- TESTENV=check-manifest
|
- TESTENV=check-manifest
|
||||||
- TESTENV=pylint
|
- TESTENV=pylint
|
||||||
|
- TESTENV=eslint
|
||||||
|
|
||||||
# Not really, but this is here so we can do stuff by hand.
|
# Not really, but this is here so we can do stuff by hand.
|
||||||
language: c
|
language: c
|
||||||
@ -63,3 +64,5 @@ matrix:
|
|||||||
env: TESTENV=check-manifest
|
env: TESTENV=check-manifest
|
||||||
- os: osx
|
- os: osx
|
||||||
env: TESTENV=pylint
|
env: TESTENV=pylint
|
||||||
|
- os: osx
|
||||||
|
env: TESTENV=eslint
|
||||||
|
@ -88,8 +88,9 @@ if 'APPVEYOR' in os.environ:
|
|||||||
|
|
||||||
check_setup(r'C:\Python34\python')
|
check_setup(r'C:\Python34\python')
|
||||||
elif TRAVIS_OS == 'linux':
|
elif TRAVIS_OS == 'linux':
|
||||||
print("sudo pip install tox")
|
if TESTENV != 'eslint':
|
||||||
subprocess.check_call(['sudo', 'pip', 'install', 'tox'])
|
print("sudo pip install tox/npm")
|
||||||
|
subprocess.check_call(['sudo', 'pip', 'install', 'tox'])
|
||||||
|
|
||||||
print("Installing packages...")
|
print("Installing packages...")
|
||||||
pkgs = []
|
pkgs = []
|
||||||
@ -98,13 +99,19 @@ elif TRAVIS_OS == 'linux':
|
|||||||
pkgs.append('xvfb')
|
pkgs.append('xvfb')
|
||||||
if INSTALL_PYQT:
|
if INSTALL_PYQT:
|
||||||
pkgs += ['python3-pyqt5', 'python3-pyqt5.qtwebkit']
|
pkgs += ['python3-pyqt5', 'python3-pyqt5.qtwebkit']
|
||||||
|
if TESTENV == 'eslint':
|
||||||
|
pkgs += ['npm', 'nodejs']
|
||||||
|
|
||||||
if pkgs:
|
if pkgs:
|
||||||
print("apt-get update...")
|
print("apt-get update...")
|
||||||
apt_get(['update'])
|
apt_get(['update'])
|
||||||
print("apt-get install...")
|
print("apt-get install...")
|
||||||
apt_get(['install'] + pkgs)
|
apt_get(['install'] + pkgs)
|
||||||
check_setup('python3')
|
|
||||||
|
if TESTENV == 'eslint':
|
||||||
|
subprocess.check_call(['sudo', 'npm', 'install', '-g', 'eslint'])
|
||||||
|
else:
|
||||||
|
check_setup('python3')
|
||||||
elif TRAVIS_OS == 'osx':
|
elif TRAVIS_OS == 'osx':
|
||||||
print("brew update...")
|
print("brew update...")
|
||||||
brew(['update'], silent=True)
|
brew(['update'], silent=True)
|
||||||
|
@ -53,7 +53,9 @@ if travis_os == 'linux' and testenv == 'py35':
|
|||||||
elif travis_os == 'osx' and testenv == 'py34':
|
elif travis_os == 'osx' and testenv == 'py34':
|
||||||
raise Exception("Can't run py34 on OS X")
|
raise Exception("Can't run py34 on OS X")
|
||||||
|
|
||||||
if testenv == 'py34' and travis_os == 'linux':
|
if testenv == 'eslint':
|
||||||
|
subprocess.check_call(['eslint', 'qutebrowser'])
|
||||||
|
elif testenv == 'py34' and travis_os == 'linux':
|
||||||
subprocess.check_call(['xvfb-run', '-s', '-screen 0 640x480x16',
|
subprocess.check_call(['xvfb-run', '-s', '-screen 0 640x480x16',
|
||||||
'tox', '-e', testenv])
|
'tox', '-e', testenv])
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user