Skip mkvenv.py smoke test on Travis

This commit is contained in:
Florian Bruhin 2020-12-03 17:43:50 +01:00
parent 4050b81f30
commit 3b7bf3fdf1
2 changed files with 7 additions and 2 deletions

View File

@ -19,10 +19,15 @@
# along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
import os
from scripts import mkvenv
def test_smoke(tmp_path):
"""Simple smoke test of mkvenv.py."""
args = mkvenv.parse_args(['--venv-dir', str(tmp_path / 'venv'), '--skip-docs'])
argv = ['--venv-dir', str(tmp_path / 'venv'), '--skip-docs']
if 'TRAVIS' in os.environ: # Travis doesn't have necessary libs installed
argv.append('--skip-smoke-test')
print(argv)
args = mkvenv.parse_args(argv)
mkvenv.run(args)

View File

@ -15,7 +15,7 @@ setenv =
pyqt{,57,59,510,511,512,513,514,515,5150}: LINK_PYQT_SKIP=true
pyqt{,57,59,510,511,512,513,514,515,5150}: QUTE_BDD_WEBENGINE=true
cov: PYTEST_ADDOPTS=--cov --cov-report xml --cov-report=html --cov-report=
passenv = PYTHON DISPLAY XAUTHORITY HOME USERNAME USER CI XDG_* QUTE_* DOCKER QT_QUICK_BACKEND PY_COLORS
passenv = PYTHON DISPLAY XAUTHORITY HOME USERNAME USER CI TRAVIS XDG_* QUTE_* DOCKER QT_QUICK_BACKEND PY_COLORS
basepython =
py: {env:PYTHON:python3}
py3: {env:PYTHON:python3}