diff --git a/.circleci/config.yml b/.circleci/config.yml index 2a9299565a..d78ec2b817 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -23,16 +23,19 @@ jobs: pkg-manager: pip-dist pip-dependency-file: setup.py path-args: .[test] - - run: | - echo "ELASTICSEARCH_HOSTS = [{'host': 'localhost', 'port': 9200}]" > test.cfg - python portality/cms/build_fragments.py - python portality/cms/build_sass.py - - run: | - TESTS=$(circleci tests glob "doajtest/unit/test_background*.py" | circleci tests split) - pytest -v --color=yes --code-highlight=yes --log-level=DEBUG --junitxml=test-results/doajtest-unit.xml $TESTS + - run: + name: Prepare doaj env for unittests + command: | + echo "ELASTICSEARCH_HOSTS = [{'host': 'localhost', 'port': 9200}]" > test.cfg + python portality/cms/build_fragments.py + python portality/cms/build_sass.py + - run: + name: Run unit tests + command: | + TESTS=$(circleci tests glob "doajtest/unit/test_background_*.py" | circleci tests split) + pytest -v --color=yes --code-highlight=yes --log-level=DEBUG --junitxml=test-results/doajtest-unit.xml $TESTS - store_test_results: path: test-results - working_directory: ~/doaj