This repository has been archived by the owner on Apr 15, 2024. It is now read-only.
forked from oist/optinist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
65 lines (55 loc) · 2.08 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
.PHONY: test_run
test_run:
docker-compose -f docker-compose.yml down --rmi all --volumes --remove-orphans
docker-compose -f docker-compose.yml rm -f
docker-compose -f docker-compose.yml build test_optinist
docker-compose -f docker-compose.yml build test_optinist_frontend
docker-compose -f docker-compose.yml run test_optinist
docker-compose -f docker-compose.yml run test_optinist_frontend
.PHONY: test_python
test_python:
docker-compose -f docker-compose.yml down --rmi all --volumes --remove-orphans
docker-compose -f docker-compose.yml rm -f
docker-compose -f docker-compose.yml build test_optinist
docker-compose -f docker-compose.yml run test_optinist
.PHONY: test_frontend
test_frontend:
docker-compose -f docker-compose.yml down --rmi all --volumes --remove-orphans
docker-compose -f docker-compose.yml rm -f
docker-compose -f docker-compose.yml build test_optinist_frontend
docker-compose -f docker-compose.yml run test_optinist_frontend
.PHONY: build_frontend
build_frontend:
docker-compose -f docker-compose.yml down --rmi all --volumes --remove-orphans
docker-compose -f docker-compose.yml rm -f
docker-compose -f docker-compose.yml build build_optinist_frontend
docker-compose -f docker-compose.yml run build_optinist_frontend
.PHONY: docs
docs:
rm -rf docs/_build/
# sphinx-apidoc -f -o ./docs/_build/modules ./optinist
sphinx-autobuild -b html docs docs/_build --port 8001
.PHONY: dockerhub
dockerhub:
docker build --rm -t oistncu/optinist:latest . --platform=linux/amd64
docker push oistncu/optinist:latest
.PHONY: local_build
local_build:
cp -r frontend/build optinist/frontend/build
pip install .
.PHONY: upload_testpypi
upload_testpypi:
mkdir -p optinist/frontend/build
cp -r frontend/build optinist/frontend/
python setup.py sdist
twine upload --repository testpypi dist/*
.PHONY: test_pypi
test_pypi:
python3 -m pip install --index-url https://test.pypi.org/simple/ optinist
.PHONY: push_pypi
push_pypi:
twine upload --repository pypi dist/*
.PHONY: test_doc
test_doc:
python3 -m pip install -r docs/requirements.txt
sphinx-autobuild -b html docs docs/_build --port 8001