forked from lektor/lektor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (31 loc) · 907 Bytes
/
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
all: build-js
build-js:
@echo "---> building static files"
@cd lektor/admin; npm install .
@cd lektor/admin; npm run webpack
pex:
virtualenv pex-build-cache
pex-build-cache/bin/pip install --upgrade pip
pex-build-cache/bin/pip install pex requests wheel
pex-build-cache/bin/pip wheel -w pex-build-cache/wheelhouse .
pex-build-cache/bin/pex \
-v -o lektor.pex -e lektor.cli:cli \
-f pex-build-cache/wheelhouse \
--disable-cache \
--not-zip-safe Lektor
rm -rf pex-build-cache
test-python:
@echo "---> running python tests"
py.test . --tb=short -v --cov=lektor
coverage-python: test-python
coverage xml
test-js: build-js
@echo "---> running javascript tests"
@cd lektor/admin; npm run lint
@cd lektor/admin; npm test
coverage-js: test-js
@cd lektor/admin; npm run report-coverage
test: test-python test-js
coverage: coverage-python coverage-js
osx-dmg:
$(MAKE) -C gui osx-dmg