/
Makefile
85 lines (59 loc) · 1.92 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
## 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)
rund:
cd ajenti-panel && ./ajenti-panel --plugins ../plugins -d $(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
add-crowdin:
ajenti-dev-multitool --xgettext
ajenti-dev-multitool --add-crowdin
check:
ajenti-dev-multitool --find-outdated
upload:
rm ajenti-core/dist/* ajenti-panel/dist/* || true
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
rm plugins/dist/* || true
ajenti-dev-multitool --setuppy 'sdist'
twine upload plugins/*/dist/*.tar.gz -i "Ajenti Packagers" -s --skip-existing
test:
cd e2e && ./run
build_dev:
bash scripts/build_deb.sh
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/