-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile
60 lines (46 loc) · 1.41 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
.PHONY: docs test
help:
@echo " env create a development environment using virtualenv"
@echo " deps install dependencies using pip"
@echo " clean remove unwanted files like .pyc's"
@echo " lint check style with flake8"
@echo " test run all tests"
@echo " testf run all front end tests"
@echo " testb run all backend tests"
@echo " testa run all acceptance tests"
env:
sudo easy_install pip && \
pip install virtualenv && \
virtualenv env && \
. env/bin/activate && \
make deps
deps:
pip install -r requirements.txt
npm install
node_modules/gulp/bin/gulp.js
clean:
find . -name '*.pyc' -exec rm -f {} \;
find . -name '*.pyo' -exec rm -f {} \;
find . -name '*~' -exec rm -f {} \;
rm -rf bower_components node_modules
rm -rf acj/static/dist acj/static/build
lint:
flake8 --exclude=env .
testa:
node_modules/gulp/bin/gulp.js test:acceptance
testf:
node_modules/gulp/bin/gulp.js test:unit
testb:
python -m unittest discover -s acj/tests/
tdd:
node_modules/karma/bin/karma start acj/static/test/config/karma.conf.js
test: testf testb
testci:
node_modules/karma/bin/karma start acj/static/test/config/karma.conf.js --single-run --browsers PhantomJS
python -m unittest discover -s acj/tests/
testsauce:
node_modules/.bin/gulp test:acceptance:sauce
run:
python manage.py runserver -h 0.0.0.0
rundev:
python manage.py runserver -h 0.0.0.0 -dr