-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (41 loc) · 1.5 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
target = kuma
requirements = -r requirements/local.txt
# set Django settings module if not already set as env var
export DJANGO_SETTINGS_MODULE ?= kuma.settings.testing
# Note: these targets should be run from the kuma vm
test:
py.test $(target)
coveragetest: clean
py.test --cov=$(target) $(target)
coveragetesthtml: coveragetest
coverage html
locust:
locust -f tests/performance/smoke.py --host=https://developer.allizom.org
compilecss:
@ echo "## Compiling Stylus files to CSS ##"
@ ./scripts/compile-stylesheets
compilejsi18n:
@ echo "## Generating JavaScript translation catalogs ##"
@ python manage.py compilejsi18n
collectstatic:
@ echo "## Collecting and building static files ##"
@ mkdir -p build/assets
@ python manage.py collectstatic --noinput
install:
@ echo "## Installing $(requirements) ##"
@ pip install $(requirements)
# Note: this target should be run from the host machine with selenium running
intern:
pushd tests/ui ; ./node_modules/.bin/intern-runner config=intern-local d=developer.allizom.org b=firefox; popd
clean:
rm -rf .coverage build/
find kuma -name '*.pyc' -exec rm {} \;
mkdir -p build/assets
mkdir -p build/locale
locale:
@mkdir -p locale/$(LOCALE)/LC_MESSAGES && \
for pot in locale/templates/LC_MESSAGES/* ; do \
msginit --no-translator -l $(LOCALE) -i $$pot -o locale/$(LOCALE)/LC_MESSAGES/`basename -s .pot $$pot`.po ; \
done
# Those tasks don't have file targets
.PHONY: test coveragetest intern locust clean locale install compilecss compilejsi18n collectstatic