-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
127 lines (97 loc) · 3.12 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
VERSION=3.4.2
all:
@echo "Branch: `git branch|grep ^*`"
@echo
@echo -n "Current build:"
@grep "^product_build = " sbin/ucserv.py|cut -d= -f2|awk '{ print $1 }'
@EVA_CONTROLLER=uc ./sbin/_control version
@EVA_CONTROLLER=lm ./sbin/_control version
@EVA_CONTROLLER=sfa ./sbin/_control version
pub:
git push
jks build eva-${VERSION}
test-build:
make build
git commit -a -m 'test build'
git push
make dmaster
make test-release
rci job run pub.bma.ai
test-build-for-stable:
make build
git commit -a -m 'test build'
git push
make d
make test-release
rci job run pub.bma.ai
rc-pub:
make d
make test-release
rci job run pub.bma.ai
d:
mkdir -p dist
@./dev/make-dist
dmaster:
mkdir -p dist
@./dev/make-dist master
stable-release:
@./dev/make-release
rci job run pub.bma.ai
test-release:
@./dev/make-release --test
test:
lab-xs4 on
ssh -t lab-xs4 "cd /opt/et && make test-c"
test-full:
lab-xs4 on
ssh -t lab-xs4 "cd /opt/et && make test"
t:
cd doc && make clean html
ch:
@./dev/upload-changelog
build: build-increase
build-increase:
sh ./dev/increase_build_version
check:
@./dev/check_code
start:
./sbin/eva-control start
stop:
./sbin/eva-control stop
restart:
./sbin/eva-control restart
ver: build-increase update-version
update-version:
find bin -name "*" -type f -not -path "*/.git/*" -exec sed -i "s/^__version__ = .*/__version__ = \"${VERSION}\"/g" {} \;
find cli -name "*" -type f -not -path "*/.git/*" -exec sed -i "s/^__version__ = .*/__version__ = \"${VERSION}\"/g" {} \;
find sbin -name "*" -type f -not -path "*/.git/*" -exec sed -i "s/^__version__ = .*/__version__ = \"${VERSION}\"/g" {} \;
find lib -name "*.py" -type f -not -path "*/.git/*" -exec sed -i "s/^__version__ = .*/__version__ = \"${VERSION}\"/g" {} \;
find doc -name "*.py" -type f -not -path "*/.git/*" -exec sed -i "s/^__version__ = .*/__version__ = \"${VERSION}\"/g" {} \;
find . -name "*.js" ! -name "chart.min.js" -exec sed -i "s/* Version: .*/* Version: ${VERSION}/g" {} \;
find . -name "*.php" -exec sed -i "s/eva_version = .*/eva_version = '${VERSION}';/g" {} \;
find . -name "*.php" -exec sed -i "s/@version .*/@version ${VERSION}/g" {} \;
find . -name "*" ! -name "Makefile" -type f -not -path "*/.git/*" -exec sed -i "s/\((C) 2012-\)[0-9]*/\1`date "+%Y"`/g" {} \;
#find . -name "*" ! -name "Makefile" -type f -not -path "*/.git/*" -exec sed -i "s/\((c)) [0-9]*/\1`date "+%Y"`/g" {} \;
sed -i "s/^VERSION=.*/VERSION=${VERSION}/g" update.sh
#sed -i "s/^eva_sfa_framework_version =.*/eva_sfa_framework_version = \"${VERSION}\";/g" ui/js/eva_sfa.js
yapf:
find . -name "*.py" -exec yapf --style google -i {} \;
min:
./dev/make-min
#pub-compose:
#scp -P 222 install/demos/eva_basic/docker-compose.yml [email protected]:/www/download/eva-ics/configs/
#gsutil cp -a public-read install/demos/eva_basic/docker-compose.yml gs://pub.bma.ai/eva3/configs/
#cd /opt/eva-ics.com/indexer && make prefix=/configs pub
#demo-basic:
#./dev/make-demo basic
#demo-farm:
#./dev/make-demo farm
clean:
docker-compose down
man:
cd doc && make html
completion:
./dev/gen-complete.sh
env:
./install/build-venv
#./venv/bin/pip install ipython ipdb