forked from bluelabsio/sqlalchemy-vertica-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (30 loc) · 1.39 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
all: coverageclean test coverage quality
coverageclean:
rm -fr .coverage
clean: coverageclean typecoverageclean
FILES=$$(find . -name \*.pyc); for f in $${FILES}; do rm $$f; done
test:
ENV=test nosetests --exclude='tests/integration' --cover-package=sqla_vertica_python --with-coverage --with-xunit --cover-html --cover-xml --nocapture --cover-inclusive
citest:
ENV=test nosetests --exclude='tests/integration' --cover-package=sqla_vertica_python --with-coverage --with-xunit --cover-html --cover-xml --nocapture --cover-inclusive --xunit-file=test-reports/junit.xml
coverage:
python setup.py coverage_ratchet
cicoverage: coverage
@echo "Looking for un-checked-in unit test coverage metrics..."
@git status --porcelain metrics/coverage_high_water_mark
@test -z "$$(git status --porcelain metrics/coverage_high_water_mark)"
flake8:
flake8 sqla_vertica_python tests
quality-flake8:
make QUALITY_TOOL=flake8 quality
quality-punchlist:
make QUALITY_TOOL=punchlist quality
# to run a single item, you can do: make QUALITY_TOOL=bigfiles quality
quality:
@quality_gem_version=$$(python -c 'import yaml; print(yaml.safe_load(open(".circleci/config.yml","r"))["quality_gem_version"])'); \
docker run \
-v "$$(pwd):/usr/app" \
-v "$$(pwd)/Rakefile.quality:/usr/quality/Rakefile" \
"apiology/quality:$${quality_gem_version}" ${QUALITY_TOOL}
package:
python3 setup.py sdist bdist_wheel