forked from paxswill/evesrp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
66 lines (52 loc) · 1.33 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
SHELL := /bin/sh
include variables.mk
.PHONY: all clean deep-clean doc-clean build-deps test test-python \
test-javascript docs travis-setup travis travis-success sdist upload \
javascript translations static
all:: docs javascript translations static
distclean:: clean doc-clean
rm -rf node_modules
build-deps: node_modules
pip install tox babel coverage jinja2
npm install
sdist: javascript translations static setup.py
python setup.py sdist
upload: javascript translations static setup.py
python setup.py sdist upload
# test-javascript gets added to the test target in javascript.mk
test:: test-python
test-python: translations
coverage erase
tox
coverage combine
coverage html -d coverage-report
clean::
rm -f test-report*.html .coverage.*
rm -rf coverage-report tests_python/coverage-report
docs:
tox -e docs
# Travis targets
ifneq (,$(findstring javascript,$(TEST_SUITE)))
travis-setup:
travis: test-javascript
travis-success:
cat tests_javascript/coverage/lcov.info | $(NODE_BIN)/coveralls
else ifneq (,$(findstring docs,$(TEST_SUITE)))
travis-setup:
travis: docs
travis-success:
else
travis-setup:
pip install coveralls
travis: test-python
travis-success:
coveralls
endif
# Node packages
$(NODE_MODULES): package.json
npm install
$(NODE_MODULES)/%:
npm install
include translations.mk
include misc.mk
include javascript.mk