-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (28 loc) · 968 Bytes
/
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
# convenience Makefile to run tests and QA tools
# options: zc.buildout options
# src: source path
# minimum_coverage: minimun test coverage allowed
# pep8_ignores: ignore listed PEP 8 errors and warnings
# max_complexity: maximum McCabe complexity allowed
# css_ignores: skip file names matching find pattern (use ! -name PATTERN)
# js_ignores: skip file names matching find pattern (use ! -name PATTERN)
SHELL = /bin/sh
options = -N -q -t 3
src = src/collective/soap_search
minimum_coverage = 70
pep8_ignores = E501
max_complexity = 15
css_ignores = ! -name jquery\*
js_ignores = ! -name jquery\*
python-validation:
@echo Validating Python files
bin/flake8 --ignore=$(pep8_ignores) --max-complexity=$(max_complexity) $(src)
quality-assurance: python-validation
# @echo Quality assurance
# ./coverage.sh $(minimum_coverage)
install:
mkdir -p buildout-cache/downloads
python bootstrap.py -c travis.cfg
bin/buildout -c travis.cfg $(options)
tests:
bin/test