1 Star 2 Fork 0

kaycn/phantoscope

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
COMMIT_ID = $(shell git rev-parse --short HEAD)
GIT_TAG = $(shell git tag --points-at HEAD)
.PHONY: api test lint release
all: test lint api clean
api:
docker build -t phantoscope/api-server:$(COMMIT_ID) .
env:
LOCAL_ADDRESS=$(shell ip a | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'| head -n 1) docker-compose -f docker-compose-test.yml up -d
test:
docker pull psoperator/vgg16-encoder:latest
docker pull psoperator/ssd-detector:latest
PYTHONPATH=$(shell pwd)/search pytest tests --cov=./
lint:
PYTHONPATH=$(shell pwd)/search pylint --rcfile=pylint.conf search --msg-template='{msg_id}:{line:3d},{column}: {obj}: {msg}' --exit-zero > lintoutput
echo $(shell tail -2 lintoutput | grep -P "\d+" -o |sed -n "1p").$(shell tail -2 lintoutput | grep -P "\d+" -o |sed -n "2p")
clean:
rm -rf .pytest_cache
rm -rf lintoutput
ifeq ($(GIT_TAG), )
TAG=$(COMMIT_ID)
else
TAG=$(GIT_TAG)
endif
release:
docker build -t phantoscope/api-server:$(TAG) .
login:
docker login -u phantoscope -p $(DOCKERHUB_TOKEN)
push: login
docker push phantoscope/api-server:$(TAG)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lkaycn/phantoscope.git
git@gitee.com:lkaycn/phantoscope.git
lkaycn
phantoscope
phantoscope
master

搜索帮助