Skip to content

Commit

Permalink
makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
lsbardel committed Oct 29, 2024
1 parent d5d171b commit 023d521
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
25 changes: 12 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
.PHONY: help

help:
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'


.PHONY: clean
clean: ## remove python cache files
find . -name '__pycache__' | xargs rm -rf
find . -name '*.pyc' -delete
Expand All @@ -14,46 +13,46 @@ clean: ## remove python cache files
rm -rf .mypy_cache
rm -rf .coverage


.PHONY: install
install: ## install packages in virtualenv
@./dev/install


.PHONY: lint
lint: ## run linters
@poetry run ./dev/lint-code fix


.PHONY: lint-check
lint-check: ## run black check in CI
@poetry run ./dev/lint-code


.PHONY: outdated
outdated: ## Show outdated packages
poetry show -o -a


.PHONY: version
version: ## display software version
@poetry run python -c "import kong; print(kong.__version__)"


.PHONY: services
services: ## Starts services
@docker-compose -f ./dev/docker-compose.yml up --remove-orphans


.PHONY: services-ci
services-ci: ## Starts CI services
@docker-compose -f ./dev/docker-compose.yml up --remove-orphans -d


.PHONY: test
test: ## run tests
@poetry run pytest -x -vvv --cov --cov-report xml --cov-report html


.PHONY: test-codecov
test-codecov: ## upload code coverage
@poetry run codecov --token $(CODECOV_TOKEN) --file ./build/coverage.xml


.PHONY: test-version
test-version: ## check version compatibility
@./dev/test-version


.PHONY: publish
publish: ## release to pypi and github tag
@poetry publish --build -u __token__ -p $(PYPI_TOKEN)
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[![Downloads](https://img.shields.io/pypi/dd/aio-kong.svg)](https://pypi.org/project/aio-kong/)


Tested with [kong][] v3.7
Tested with [kong][] v3.8

## Installation & Testing

Expand Down

0 comments on commit 023d521

Please sign in to comment.