https://github.com/bear/python-twitter
Tip revision: e05b8f870420e9be495e4616ac6470840c4eda1a authored by bear (Mike Taylor) on 13 July 2016, 11:07:16 UTC
tweak CI to run new Makefile target; add codecov token to .gitignore
tweak CI to run new Makefile target; add codecov token to .gitignore
Tip revision: e05b8f8
Makefile
help:
@echo " env install all production dependencies"
@echo " dev install all dev and production dependencies (virtualenv is assumed)"
@echo " docs build documentation"
@echo " clean remove unwanted stuff"
@echo " lint check style with flake8"
@echo " test run tests"
@echo " coverage run tests with code coverage"
tox:
export PYENV_VERSION="2.7.11:3.5.1:pypy-5.0.0" && tox
env:
pip install -r requirements.txt
dev: env
pip install -r requirements.testing.txt
info:
@python --version
@pyenv --version
@pip --version
clean:
rm -fr build
rm -fr dist
find . -name '*.pyc' -exec rm -f {} \;
find . -name '*.pyo' -exec rm -f {} \;
find . -name '*~' ! -name '*.un~' -exec rm -f {} \;
docs:
$(MAKE) -C doc html
lint:
flake8 twitter > violations.flake8.txt
test:
python setup.py test
coverage: clean
coverage run --source=twitter setup.py test --addopts "--ignore=venv"
coverage html
coverage report
ci: info coverage
CODECOV_TOKEN=`cat .codecov-token` codecov
build: clean
python setup.py check
python setup.py sdist
python setup.py bdist_wheel
upload: clean
python setup.py sdist upload
python setup.py bdist_wheel upload