rayepps/dynofunc

View on GitHub
Makefile

Summary

Maintainability
Test Coverage


.PHONY: build-dist
build-dist:
    python setup.py sdist

.PHONY: upload-dist
upload-dist:
    TWINE_USERNAME="__token__" \
  TWINE_PASSWORD="${token}" \
    twine upload --verbose dist/*

.PHONY: test-upload-dist
test-upload-dist:
    TWINE_USERNAME="__token__" \
  TWINE_PASSWORD="${token}" \
  TWINE_REPOSITORY_URL="https://test.pypi.org/legacy/" \
  twine upload --verbose dist/*

.PHONY: test
test:
    PYTHONPATH=`pwd` python3 -m pytest --cov=dynofunc --cov-report term:skip-covered --cov-fail-under=100 --cov-report html test/unit/ -vv

.PHONY: lint
lint:
    pylint dynofunc

.PHONY: check
check: lint test
    @echo "🎉 Check passed 👍"

.PHONY: fresh
fresh:
    python3 -m venv venv

.PHONY: install
install:
    pip install -r requirements.txt

.PHONY: travis
travis: check
    codeclimate-test-reporter

.PHONY: clean
clean:
    rm -rf htmlcov
    rm -rf .coverage
    rm -rf dist/
    rm -rf dynofunc.egg-info
    rm -rf .pytest_cache