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