2021-02-08 22:09:31 +01:00
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
2021-02-07 16:35:08 +01:00
|
|
|
build:
|
2021-02-08 22:09:31 +01:00
|
|
|
pip3 install --upgrade -r requirements-build.txt -r requirements-runtime.txt
|
2021-02-07 16:35:08 +01:00
|
|
|
python3 setup.py build sdist bdist_wheel
|
|
|
|
|
2021-02-07 23:00:02 +01:00
|
|
|
build-docker-alpine:
|
|
|
|
docker build -t nicolabs/nicobot:alpine -f alpine.Dockerfile .
|
|
|
|
|
|
|
|
build-docker-debian-signal:
|
|
|
|
docker build -t nicolabs/nicobot:signal-debian -f signal-debian.Dockerfile .
|
|
|
|
|
2021-02-07 22:24:35 +01:00
|
|
|
build-docker-debian:
|
|
|
|
docker build -t nicolabs/nicobot:debian -f debian.Dockerfile .
|
|
|
|
|
2021-02-07 16:35:08 +01:00
|
|
|
test:
|
|
|
|
python3 -m unittest discover -v -s tests
|
2021-02-07 22:24:35 +01:00
|
|
|
|
|
|
|
askbot:
|
|
|
|
python3 -m nicobot.askbot $(ARGS)
|
|
|
|
|
|
|
|
transbot:
|
|
|
|
python3 -m nicobot.transbot $(ARGS)
|
|
|
|
|
|
|
|
docker-askbot:
|
|
|
|
docker run --rm -it nicolabs/nicobot:debian askbot $(ARGS)
|
|
|
|
|
|
|
|
docker-transbot:
|
|
|
|
docker run --rm -it nicolabs/nicobot:debian transbot $(ARGS)
|
2021-02-08 22:09:31 +01:00
|
|
|
|
|
|
|
# All targets might be declared phony, since this Makefile is just a helper
|
|
|
|
# However most just don't match a file/directory so they will work without it
|
|
|
|
.PHONY: build test
|