mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2025-12-22 20:51:58 +00:00
test:migrate to latest pytest-invenio and docker-services-cli (#97)
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
# details.
|
||||
|
||||
[pytest]
|
||||
pep8ignore = docs/conf.py ALL
|
||||
addopts = --pep8 --doctest-glob="*.rst" --doctest-modules --cov=invenio_theme_tugraz --cov-report=term-missing
|
||||
testpaths = docs tests invenio_theme_tugraz
|
||||
filterwarnings = ignore::pytest.PytestDeprecationWarning
|
||||
addopts = --isort --pydocstyle --pycodestyle --doctest-glob="*.rst" --doctest-modules --cov=invenio_theme_tugraz --cov-report=term-missing
|
||||
testpaths = tests invenio_theme_tugraz
|
||||
live_server_scope = module
|
||||
|
||||
13
run-tests.sh
13
run-tests.sh
@@ -7,8 +7,11 @@
|
||||
# modify it under the terms of the MIT License; see LICENSE file for more
|
||||
# details.
|
||||
|
||||
pydocstyle invenio_theme_tugraz tests docs && \
|
||||
isort invenio_theme_tugraz tests --check-only --diff && \
|
||||
check-manifest --ignore ".travis-*" && \
|
||||
sphinx-build -qnNW docs docs/_build/html && \
|
||||
pytest
|
||||
docker-services-cli up postgresql es redis
|
||||
python -m check_manifest --ignore ".travis-*" && \
|
||||
python -m sphinx.cmd.build -qnNW docs docs/_build/html && \
|
||||
docker-services-cli up es postgresql redis
|
||||
python -m pytest
|
||||
tests_exit_code=$?
|
||||
docker-services-cli down
|
||||
exit "$tests_exit_code"
|
||||
Reference in New Issue
Block a user