Skip to content

Commit

Permalink
Demo: call docker-services cli before/after tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantinaStoikou committed Aug 21, 2020
1 parent 85891eb commit c47c4b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -57,6 +57,7 @@ before_install:
install:
- "travis_retry pip install -r .travis-${REQUIREMENTS}-requirements.txt"
- "travis_retry pip install -e .[${EXTRAS}]"
- "travis_retry pip install git+https://github.com/ppanero/docker-services.git#egg=docker-services"

script:
- "./run-tests.sh"
Expand Down
8 changes: 7 additions & 1 deletion run-tests.sh
Expand Up @@ -7,10 +7,16 @@
# 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.

docker-services services up mysql

docker-services wait-all-services-up mysql

export PYTEST_ADDOPTS='docs tests invenio_access'

pydocstyle invenio_access tests docs && \
isort -rc -c -df && \
isort . -rc -c -df && \
check-manifest --ignore ".travis-*" && \
sphinx-build -qnNW docs docs/_build/html && \
python setup.py test

docker-services services down

0 comments on commit c47c4b4

Please sign in to comment.