-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
55 lines (42 loc) · 1.21 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
info:
@python --version
@pyenv --version
@pip --version
clean:
rm -fr build
rm -fr dist
find . -name '*.pyc' -exec rm -f {} \;
find . -name '*.pyo' -exec rm -f {} \;
find . -name '*~' ! -name '*.un~' -exec rm -f {} \;
lint:
pre-commit run -a
test:
coverage run --source='.' manage.py test
coverage report
coverage html
env:
pyenv install -s 3.6.0
pyenv local 3.6.0
install:
pip install -Ur requirements/dev.txt
dev:
pyenv install -s 3.6.0
# Make will continue here in the event that the virtualenv already exists
- pyenv virtualenv 3.6.0 phillydsa
pyenv local phillydsa
pip install -r requirements/dev.txt
pre-commit install
server:
python manage.py runserver 0.0.0.0:8000
gulp:
gulp
ci: clean env info test
codecov
ans_deploy:
ansible-playbook --private-key=.vagrant/machines/default/virtualbox/private_key -u vagrant -i ansible/hosts ansible/ansible-phillydsa-com.yml -vvvv --vault-password-file ~/.vault_pass.txt
deploy:
ansible-playbook --private-key=~/.ssh/id_rsa -u jeremy -i ansible/hosts ansible/phillydsa-com.yml -vv --vault-password-file ~/.vault_pass.txt -K
dump:
python manage.py dumpdata --natural-foreign --natural-primary > data-`date +'%Y-%m-%d-%H-%M-%S'`.json
uncss:
node uncss.js