forked from Staffjoy/suite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
32 lines (32 loc) · 728 Bytes
/
makefile
File metadata and controls
32 lines (32 loc) · 728 Bytes
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
.PHONY: build
dev:
bash dev.sh
dev-server:
sudo su root -c 'source /vagrant/vagrant-venv/bin/activate && cd /vagrant && export ENV="dev" && (make celery-server &) &&python main.py runserver'
celery-server:
celery -A main.celery worker
build:
bash build.sh
dev-requirements:
pip freeze > requirements.txt
db-migrate:
python main.py db migrate
db-deploy:
python main.py deploy
py-lint:
pylint --rcfile .pylintrc app/ tests/
shell:
python main.py shell
test:
make fmt-test
make py-lint
make smoke-test
make unit-test
fmt:
yapf -r -i app/ tests/ || :
fmt-test:
yapf -r -d app/ tests/ || (echo "Document not formatted - run 'make fmt'" && exit 1)
unit-test:
python main.py test
smoke-test:
py.test tests/smoke -v -s