forked from dropbox/changes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (38 loc) · 1.03 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
.PHONY: static
develop: install-requirements install-test-requirements setup-git
upgrade: develop
alembic upgrade head
node_modules/.bin/grunt requirejs
setup-git:
git config branch.autosetuprebase always
cd .git/hooks && ln -sf ../../hooks/* ./
install-requirements: update-submodules
npm install
bower install
pip install -e . --use-mirrors --allow-external=argparse
install-test-requirements:
pip install "file://`pwd`#egg=changes[tests]" --use-mirrors
update-submodules:
git submodule init
git submodule update
test: lint
@echo "Running Python tests"
py.test tests
@echo ""
lint: lint-js lint-python
lint-python:
@echo "Linting Python files"
@PYFLAKES_NODOCTEST=1 flake8 changes tests
@echo ""
lint-js:
@echo "Linting JavaScript files"
@node_modules/.bin/jshint static/
@echo ""
test-full: install-requirements install-test-requirements lint
py.test --junitxml=junit.xml --cov-report=xml --cov=. tests
resetdb:
dropdb --if-exists changes
createdb -E utf-8 changes
alembic upgrade head
static:
r.js -o build.js