-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathMakefile
86 lines (62 loc) · 1.98 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Copyright 2018 REMME
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ------------------------------------------------------------------------
.PHONY: clean run_genesis run_genesis_bg stop_genesis run run_bg stop run_docs
.PHONY: test release docker_push docs build
RUN_SCRIPT=./scripts/run.sh
BUILD_DIR=./build
build:
$(BUILD_DIR)/build.sh -r
build_dev:
$(BUILD_DIR)/build.sh
build_protobuf:
protoc -I=./protos --python_out=./remme/protos ./protos/*.proto
clean:
$(BUILD_DIR)/clean.sh
docker_push:
$(BUILD_DIR)/push-docker.sh
run_genesis:
$(RUN_SCRIPT) -g -u
run_genesis_bg:
$(RUN_SCRIPT) -g -u -b
run:
$(RUN_SCRIPT) -u
run_bg:
$(RUN_SCRIPT) -u -b
start_no_genesis:
make stop && make build_dev && DEV=1 make run
start:
make stop && make build_dev && DEV=1 make run_genesis
startd:
make stop && make build_dev && DEV=1 make run_genesis_bg
stop:
$(RUN_SCRIPT) -g -d
docs:
sphinx-build -b html ./docs ./docs/html
build_docs: build_dev
docker-compose -f ./docker/compose/docs.yml up --abort-on-container-exit
run_docs:
sphinx-autobuild -H 0.0.0.0 -p 8000 ./docs ./docs/html
test: build_dev
docker-compose -f ./docker/compose/testing.yml up --abort-on-container-exit
release:
$(BUILD_DIR)/release.sh
clean_chain_data:
docker volume rm remme_chain_data
lint:
pylint `find . -name "*.py"`
lint_html:
pylint --output-format=json `find . -name "*.py"` | pylint-json2html -o report.html
enter_testing_console:
docker run -v `realpath .`:/project/remme -it remme/remme-core:latest /bin/bash