forked from hypothesis/h
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (31 loc) · 1.09 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
SHELL := bash
PATH := bin:${PATH}
# Unless the user has specified otherwise in their environment, it's probably a
# good idea to refuse to install unless we're in an activated virtualenv.
ifndef PIP_REQUIRE_VIRTUALENV
PIP_REQUIRE_VIRTUALENV = 1
endif
export PIP_REQUIRE_VIRTUALENV
default: deps
deps:
@npm install
@pip install -q --use-wheel -e .[dev,testing,YAML]
clean:
find . -type f -name "*.py[co]" -delete
find . -type d -name "__pycache__" -delete
find h/static/scripts -mindepth 1 -name '*.min.js' -delete
find h/static/styles -mindepth 1 -name '*.css' -delete
dev:
@gunicorn --reload --paste conf/development.ini
test:
@echo -n "Checking to see if elasticsearch is running..."
$(eval es := $(shell wget --quiet --output-document - http://localhost:9200))
@if [ -n '${es}' ] ; then echo "yes." ; else echo "no!"; exit 1; fi
@python setup.py test
@"$$(npm bin)"/karma start h/static/scripts/karma.config.js --single-run
@"$$(npm bin)"/karma start h/browser/chrome/karma.config.js --single-run
cover:
@python setup.py test --cov
lint:
@prospector
.PHONY: clean cover deps dev lint test