Bug 1470279 - Add parallel tests in CircleCI

This commit is contained in:
Anthony Miyaguchi 2018-08-13 16:12:58 -07:00 коммит произвёл Anthony Miyaguchi
Родитель ceff1f4788
Коммит 68b77ede3d
2 изменённых файлов: 17 добавлений и 3 удалений

Просмотреть файл

@ -64,6 +64,7 @@ jobs:
test:
<<: *common_settings
parallelism: 8
steps:
- checkout
- run: *early_return_for_skip_tests
@ -72,8 +73,21 @@ jobs:
- run: apt update && apt install -y libsnappy-dev default-jre
- run: pip install tox
- run:
name: tox
command: tox
name: run tests
command: |
circleci tests glob "tests/**/test*.py" > tests.txt
tox -- \
$(circleci tests split --split-by=timings tests.txt | tr -d '\r') \
--junitxml=test-reports/junit.xml
- store_test_results:
path: test-reports
- store_artifacts:
path: test-reports
- run:
name: Submit code coverage data
command: |
bash <(curl -s https://codecov.io/bash)
- save_cache: *save_cache_settings
lint:
<<: *common_settings

Просмотреть файл

@ -7,7 +7,7 @@
envlist = py27, flake8
[pytest]
addopts = --cov=mozetl tests/
addopts = --cov=mozetl
[testenv]
usedevelop = True