Skip to content

Commit

Permalink
tests: add postgresql, db is used
Browse files Browse the repository at this point in the history
  • Loading branch information
utnapischtim committed Dec 10, 2024
1 parent 8812a09 commit 65c0d25
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,24 @@
# This file is part of Invenio.
# Copyright (C) 2016-2020 CERN.
# Copyright (C) 2020 Northwestern University.
# Copyright (C) 2022 Graz University of Technology.
# Copyright (C) 2022-2024 Graz University of Technology.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.


# Quit on errors
set -o errexit
# Quit on unbound symbols
set -o nounset
# Always bring down docker services
function cleanup() {
eval "$(docker-services-cli down --env)"
}
trap cleanup EXIT

python -m check_manifest
python -m setup extract_messages --output-file /dev/null
python -m sphinx.cmd.build -qnNW docs docs/_build/html
eval "$(docker-services-cli up --db ${DB:-postgresql} --env)"
python -m pytest
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ tests =
pytest-invenio>=3.0.0,<4.0.0
invenio-app>=2.0.0,<3.0.0
invenio-config>=1.0.3
invenio-db[versioning]>=2.0.0,<3.0.0
invenio-db[postgresql,versioning]>=2.0.0,<3.0.0
invenio-files-rest>=3.0.0,<4.0.0
invenio-records-files>=1.2.1
invenio-theme>=4.0.0,<5.0.0
Expand Down

0 comments on commit 65c0d25

Please sign in to comment.