-
Notifications
You must be signed in to change notification settings - Fork 55
/
Makefile
69 lines (53 loc) · 2 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
CUR_DIR = $(CURDIR)
# =====================================================================
# run
# =====================================================================
env:
echo 'FEATHER_WORK_DIR="$(CUR_DIR)/"' > .env.development
clean:
rm -rf ./Resources/ ./Public/
run:
swift run Feather
# =====================================================================
# testing
# =====================================================================
env.testing:
echo 'FEATHER_WORK_DIR="$(CUR_DIR)/Tests/"' > .env.testing
clean.testing:
rm -rf ./Tests/Resources/ ./Tests/Public/
test: clean.testing env.testing
swift test
# =====================================================================
# install
# =====================================================================
install:
swift package update
swift build -c release
install .build/Release/Feather ./feather #./usr/local/bin/feather
uninstall:
rm ./feather
# =====================================================================
# dev
# =====================================================================
dev:
cd .. && \
git clone --branch dev [email protected]:FeatherCMS/feather-core.git && \
git clone --branch dev [email protected]:FeatherCMS/analytics-module.git && \
git clone --branch dev [email protected]:FeatherCMS/aggregator-module.git && \
git clone --branch dev [email protected]:FeatherCMS/blog-module.git && \
git clone --branch dev [email protected]:FeatherCMS/markdown-module.git && \
git clone --branch dev [email protected]:FeatherCMS/redirect-module.git && \
git clone --branch dev [email protected]:FeatherCMS/swifty-module.git && \
cd feather
update:
cd .. && \
cd feather-core && git pull && cd .. && \
cd analytics-module && git pull && cd .. && \
cd aggregator-module && git pull && cd .. && \
cd blog-module && git pull && cd .. && \
cd markdown-module && git pull && cd .. && \
cd redirect-module && git pull && cd .. && \
cd swifty-module && git pull && cd .. && \
cd feather
wrk:
wrk -t12 -c400 -d30s http://localhost:8080/