forked from ajenti/ajenti
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
84 lines (57 loc) · 2.01 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
## Flag for custom config file
CONFIGFILE := ''
all: build
bower:
ajenti-dev-multitool --bower install
build:
ajenti-dev-multitool --msgfmt
ajenti-dev-multitool --build
run:
cd ajenti-panel && ./ajenti-panel -v --autologin --plugins ../plugins $(CONFIGFILE)
rundev:
cd ajenti-panel && ./ajenti-panel -v --autologin --plugins ../plugins --dev $(CONFIGFILE)
rundevlogin:
cd ajenti-panel && ./ajenti-panel -v --plugins ../plugins --dev $(CONFIGFILE)
runprod:
cd ajenti-panel && ./ajenti-panel --plugins ../plugins $(CONFIGFILE)
run3:
cd ajenti-panel && python3 ./ajenti-panel -v --autologin --plugins ../plugins $(CONFIGFILE)
rundev3:
cd ajenti-panel && python3 ./ajenti-panel -v --autologin --plugins ../plugins --dev $(CONFIGFILE)
rundevlogin3:
cd ajenti-panel && python3 ./ajenti-panel -v --plugins ../plugins --dev $(CONFIGFILE)
runprod3:
cd ajenti-panel && python3 ./ajenti-panel --plugins ../plugins $(CONFIGFILE)
clean:
find | grep \.pyc | xargs rm || true
rm -rf plugins/*/build || true
rm -rf plugins/*/dist || true
rm -rf plugins/*/.last-upload || true
doc:
sphinx-build -b html -d docs/build/doctrees docs/source docs/build/html
cdoc:
rm -rf docs/build/*
make doc
push-crowdin:
ajenti-dev-multitool --xgettext
ajenti-dev-multitool --push-crowdin
pull-crowdin:
ajenti-dev-multitool --pull-crowdin
ajenti-dev-multitool --msgfmt
check:
ajenti-dev-multitool --find-outdated
upload:
cd ajenti-core && ./setup.py sdist && twine upload dist/*.tar.gz -i "Ajenti Packagers" -s
cd ajenti-panel && ./setup.py sdist && twine upload dist/*.tar.gz -i "Ajenti Packagers" -s
upload-plugins: build
ajenti-dev-multitool --setuppy 'sdist upload --sign --identity "Ajenti Packagers"'
test:
cd e2e && ./run
webdriver:
cd e2e && node_modules/protractor/bin/webdriver-manager start
webdriver-update:
cd e2e && node_modules/protractor/bin/webdriver-manager update
karma:
cd tests-karma && node_modules/karma/bin/karma start karma.conf.coffee --no-single-run --auto-watch
nose:
cd tests-nose && nosetests tests/