-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
31 lines (25 loc) · 971 Bytes
/
Makefile
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
MODULE_VERSION := $(shell cat wait4localstack/VERSION )
all: lint build test
clean:
docker-compose -f tests/resources/docker-compose.yml down -t 0
rm -rf dist/ tests/resources/sut/wait4localstack-*.tar.gz
build:
cut -d= -f1 requirements.txt > tests/resources/requirements-latest.txt
PYTHONPATH=. python3 -m build
PYTHONPATH=. sphinx-build -b markdown . docs
gitchangelog > CHANGELOG.md
cp dist/wait4localstack-*.tar.gz tests/resources/sut/
docker-compose -f tests/resources/docker-compose.yml build sut
lint:
bandit -r .
flake8
push:
docker-compose -f tests/resources/docker-compose.yml build sut
DOCKER_IMAGE_TAG=$(MODULE_VERSION) docker-compose -f tests/resources/docker-compose.yml build sut
docker images
docker push locp/wait4localstack:$(MODULE_VERSION)
docker push locp/wait4localstack:latest
test:
@echo $(MODULE_VERSION)
DOCKER_IMAGE_TAG=$(MODULE_VERSION) docker-compose -f tests/resources/docker-compose.yml up -d
PYTHONPATH=.:.. pytest