Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Flatland
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elrichgro
Flatland
Commits
6d6e8b6a
Commit
6d6e8b6a
authored
5 years ago
by
spmohanty
Browse files
Options
Downloads
Patches
Plain Diff
Use xvfb-run only for CI
parent
5037c70a
Branches
166-comma-missing-in-getting-started-doc-in-basic-usage-template
166-comma-missing-in-getting-started-doc-in-basic-usage-template-2
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+2
-2
2 additions, 2 deletions
.gitlab-ci.yml
Makefile
+1
-1
1 addition, 1 deletion
Makefile
tox.ini
+3
-4
3 additions, 4 deletions
tox.ini
with
6 additions
and
7 deletions
.gitlab-ci.yml
+
2
−
2
View file @
6d6e8b6a
...
@@ -26,7 +26,7 @@ tests:
...
@@ -26,7 +26,7 @@ tests:
-
apt install -y libgl1-mesa-glx xvfb
-
apt install -y libgl1-mesa-glx xvfb
-
pip install tox
-
pip install tox
-
apt install -y graphviz xdg-utils
-
apt install -y graphviz xdg-utils
-
xvfb-run
-s "-screen 0 800x600x24" tox
-
xvfb-run
tox -v --recreate
build_and_deploy_docs
:
build_and_deploy_docs
:
image
:
"
python:latest"
image
:
"
python:latest"
...
@@ -42,7 +42,7 @@ build_and_deploy_docs:
...
@@ -42,7 +42,7 @@ build_and_deploy_docs:
script
:
script
:
-
pip install -r requirements_dev.txt
-
pip install -r requirements_dev.txt
-
python setup.py install
-
python setup.py install
-
make docs
-
xvfb-run
make docs
-
aws s3 cp ./docs/_build/html/ s3://${BUCKET_NAME} --recursive
-
aws s3 cp ./docs/_build/html/ s3://${BUCKET_NAME} --recursive
environment
:
environment
:
name
:
${CI_COMMIT_REF_SLUG}
name
:
${CI_COMMIT_REF_SLUG}
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
1
−
1
View file @
6d6e8b6a
...
@@ -61,7 +61,7 @@ test-all: ## run tests on every Python version with tox
...
@@ -61,7 +61,7 @@ test-all: ## run tests on every Python version with tox
tox
tox
coverage
:
##
check code coverage quickly with the default Python
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 report
-m
coverage html
coverage html
$(
BROWSER
)
htmlcov/index.html
$(
BROWSER
)
htmlcov/index.html
...
...
This diff is collapsed.
Click to expand it.
tox.ini
+
3
−
4
View file @
6d6e8b6a
[tox]
[tox]
envlist
=
py36, py37, flake8, docs, coverage, benchmark,
xvfb-run,
sh
envlist
=
py36, py37, flake8, docs, coverage, benchmark, sh
[travis]
[travis]
python
=
python
=
...
@@ -37,8 +37,7 @@ commands =
...
@@ -37,8 +37,7 @@ commands =
sh
-c
'ls
benchmarks/*.py
|
xargs
-n
1
python'
sh
-c
'ls
benchmarks/*.py
|
xargs
-n
1
python'
[testenv]
[testenv]
whitelist_externals
=
xvfb-run
whitelist_externals
=
sh
sh
pip
pip
setenv
=
setenv
=
PYTHONPATH
=
{toxinidir}
PYTHONPATH
=
{toxinidir}
...
@@ -51,6 +50,6 @@ commands =
...
@@ -51,6 +50,6 @@ commands =
pip
install
-U
pip
pip
install
-U
pip
pip
install
-r
requirements_dev.txt
pip
install
-r
requirements_dev.txt
sh
-c
'echo
DISPLAY:
$DISPLAY'
sh
-c
'echo
DISPLAY:
$DISPLAY'
xvfb-run
-a
py.test
--basetemp
=
{envtmpdir}
py.test
--basetemp
=
{envtmpdir}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment