代码拉取完成,页面将自动刷新
同步操作将从 zl无悔青春/talebook 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
.PHONY: all build push test
VER := $(shell git branch --show-current)
IMAGE := talebook/talebook:$(VER)
REPO1 := talebook/talebook:latest
REPO2 := talebook/calibre-webserver:latest
all: build up
build: test
docker build --no-cache=false --build-arg BUILD_COUNTRY=CN --build-arg GIT_VERSION=$(VER) \
-f Dockerfile -t $(IMAGE) -t $(REPO1) -t $(REPO2) .
push:
docker push $(IMAGE)
docker push $(REPO1)
docker push $(REPO2)
test: lint
rm -f unittest.log
docker build --build-arg BUILD_COUNTRY=CN -t talebook/test --target test -f Dockerfile .
docker run --rm --name=talebook-docker-test -v "$$PWD":"$$PWD" -w "$$PWD" talebook/test pytest --log-file=unittest.log --log-level=INFO tests
lint:
flake8 webserver --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 webserver --count --statistics --config .style.yapf
pytest: lint
pytest tests
testv:
coverage run -m unittest
coverage report --include "*talebook*"
testvv: testv
coverage html -d ".htmlcov" --include "*talebook*"
cd ".htmlcov" && python3 -m http.server 7777
up:
docker-compose up -d
down:
docker-compose stop
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。