Skip to content
Snippets Groups Projects
Makefile 806 B
Newer Older
dilawar's avatar
dilawar committed
POETRY := $(shell which poetry)

MYPY_OPTS:=--ignore-missing-imports --install-types --non-interactive

all : lint build

ci: bootstrap build test

build: check
	$(POETRY) build

check: lint
	$(POETRY) install
	$(POETRY) run mypy $(MYPY_OPTS) bitia tests

lint:
	$(POETRY) install
	$(POETRY) run pylint -E bitia tests

test: lint build
	$(POETRY) run pytest tests bitia

fix:
	$(POETRY) run black bitia
	$(POETRY) run black tests

gr runner gitlab-runner:
	gitlab-runner exec docker build
	gitlab-runner exec docker test
	gitlab-runner exec docker deploy

test_pipeline: install
	$(POETRY) run bitia_runner run tests/test_20220727

dilawar's avatar
dilawar committed
release:
dilawar's avatar
dilawar committed
	rm -rf dist/*.whl
dilawar's avatar
dilawar committed
	bash ./.ci/realese.sh
dilawar's avatar
dilawar committed

.PHONY : copr fix test install lint build \
	all check bootstrap test_pipeline \
	runner gitlab-runner image image_upload