Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
PYTHON := $(shell which python3)
POETRY := $(shell which poetry)
MYPY_OPTS:=--ignore-missing-imports --install-types --non-interactive
all : lint build
ci: bootstrap build test
bootstrap:
$(PYTHON) -m ensurepip
$(PYTHON) -m pip install poetry
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