Verified Commit abed264f authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Add a Makefile for test/lint

Use a Makefile for linting and test target to make it easier to develop.
parent d97dd2cc
Pipeline #1726 passed with stage
in 18 seconds
__pycache__
# coverage
.coverage
test/coverage
......@@ -5,10 +5,10 @@ variables:
before_script:
- pacman -Syu --noconfirm --noprogressbar --needed
python-pytest flake8
python-pytest python-pytest-cov flake8 make
test:
script:
- flake8 --max-line-length=120
- pytest .
- make lint
- make test
PYTHON?=python
FLAKE8?=flake8
PYTEST?=py.test
PYTEST_OPTIONS+=-s
PYTEST_INPUT?=test
PYTEST_COVERAGE_OPTIONS+=--cov-report=term-missing --cov-report=html:test/coverage --cov=pytest_pacman
EXT_COVERAGE_DIR=test/ext-coverage
.PHONY: test lint
test:
PYTHONPATH=. ${PYTEST} ${PYTEST_INPUT} ${PYTEST_OPTIONS} ${PYTEST_COVERAGE_OPTIONS}
lint:
$(FLAKE8) pytest_pacman
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment