mirror of
https://github.com/nicolabs/nicobot.git
synced 2025-09-05 17:15:36 +02:00
~ moving dependencies installation before build (how could this work before ?) + slixmpp explicit dependency (was pulled by slixmpp-omemo)
35 lines
899 B
Makefile
35 lines
899 B
Makefile
clean:
|
|
rm -rf build
|
|
|
|
build:
|
|
pip3 install --upgrade -r requirements-build.txt -r requirements-runtime.txt
|
|
python3 setup.py build sdist bdist_wheel
|
|
|
|
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 .
|
|
|
|
build-docker-debian:
|
|
docker build -t nicolabs/nicobot:debian -f debian.Dockerfile .
|
|
|
|
test:
|
|
python3 -m unittest discover -v -s tests
|
|
|
|
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)
|
|
|
|
# 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
|