Skip to content

Commit

Permalink
build: clean up the Makefile a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Oct 30, 2021
1 parent 40131f0 commit 79f832f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 deletions.
18 changes: 5 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,24 +44,13 @@ $(CSS): $(SCSS)
pysassc --style=compact $(SCSS) $@
cp $@ tests/gold/html/styled

LINTABLE = coverage tests igor.py setup.py __main__.py

lint: ## Run linters and checkers.
tox -q -e lint

test:
tox -q -e py39 $(ARGS)

PYTEST_SMOKE_ARGS = -n 6 -m "not expensive" --maxfail=3 $(ARGS)
PYTEST_SMOKE_ARGS = -n auto -m "not expensive" --maxfail=3 $(ARGS)

smoke: ## Run tests quickly with the C tracer in the lowest supported Python versions.
COVERAGE_NO_PYTRACER=1 tox -q -e py39 -- $(PYTEST_SMOKE_ARGS)

pysmoke: ## Run tests quickly with the Python tracer in the lowest supported Python versions.
COVERAGE_NO_CTRACER=1 tox -q -e py39 -- $(PYTEST_SMOKE_ARGS)

metasmoke:
COVERAGE_NO_PYTRACER=1 ARGS="-e py39" make clean metacov metahtml
COVERAGE_NO_PYTRACER=1 tox -q -e py36 -- $(PYTEST_SMOKE_ARGS)

# Coverage measurement of coverage.py itself (meta-coverage). See metacov.ini
# for details.
Expand All @@ -72,6 +61,9 @@ metacov: ## Run meta-coverage, measuring ourself.
metahtml: ## Produce meta-coverage HTML reports.
python igor.py combine_html

metasmoke:
COVERAGE_NO_PYTRACER=1 ARGS="-e py39" make clean metacov metahtml

PIP_COMPILE = pip-compile --upgrade --allow-unsafe
upgrade: export CUSTOM_COMPILE_COMMAND=make upgrade
upgrade: ## update the *.pip files with the latest packages satisfying *.in files
Expand Down
3 changes: 0 additions & 3 deletions howto.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@
- pip install -r requirements/dev.pip
- $ tox

- Testing on Linux:
- $ make test_linux

- For complete coverage testing:

$ make metacov
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt

[tool:pytest]
addopts = -q -n3 --strict-markers --force-flaky --no-flaky-report -rfeX --failed-first
addopts = -q -n auto --strict-markers --force-flaky --no-flaky-report -rfeX --failed-first
python_classes = *Test
markers =
expensive: too slow to run during "make smoke"
Expand Down

0 comments on commit 79f832f

Please sign in to comment.