Skip to content
Snippets Groups Projects
Commit 6d6e8b6a authored by spmohanty's avatar spmohanty
Browse files

Use xvfb-run only for CI

parent 5037c70a
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ tests:
- apt install -y libgl1-mesa-glx xvfb
- pip install tox
- apt install -y graphviz xdg-utils
- xvfb-run -s "-screen 0 800x600x24" tox
- xvfb-run tox -v --recreate
build_and_deploy_docs:
image: "python:latest"
......@@ -42,7 +42,7 @@ build_and_deploy_docs:
script:
- pip install -r requirements_dev.txt
- python setup.py install
- make docs
- xvfb-run make docs
- aws s3 cp ./docs/_build/html/ s3://${BUCKET_NAME} --recursive
environment:
name: ${CI_COMMIT_REF_SLUG}
......
......@@ -61,7 +61,7 @@ test-all: ## run tests on every Python version with tox
tox
coverage: ## check code coverage quickly with the default Python
xvfb-run -a coverage run --source flatland -m pytest
coverage run --source flatland -m pytest
coverage report -m
coverage html
$(BROWSER) htmlcov/index.html
......
[tox]
envlist = py36, py37, flake8, docs, coverage, benchmark, xvfb-run, sh
envlist = py36, py37, flake8, docs, coverage, benchmark, sh
[travis]
python =
......@@ -37,8 +37,7 @@ commands =
sh -c 'ls benchmarks/*.py | xargs -n 1 python'
[testenv]
whitelist_externals = xvfb-run
sh
whitelist_externals = sh
pip
setenv =
PYTHONPATH = {toxinidir}
......@@ -51,6 +50,6 @@ commands =
pip install -U pip
pip install -r requirements_dev.txt
sh -c 'echo DISPLAY: $DISPLAY'
xvfb-run -a py.test --basetemp={envtmpdir}
py.test --basetemp={envtmpdir}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment