diff --git a/.travis.yml b/.travis.yml index 7e9167d..7e8fc0d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,12 @@ script: pre-commit run --all; fi - pytest --doctest-modules --cov=anybadge --cov-report html:htmlcov anybadge tests +- python setup.py bdist_wheel +- ls -l dist +- WHEEL=$(readlink -f "dist/anybadge-*.whl") && echo "$WHEEL" +- mkdir tmp && cd tmp +- pip install "$WHEEL" +- anybadge -l label -v value before_deploy: - sed -i "s/^version = .*/version = __version__ = \"$TRAVIS_TAG\"/" anybadge/__init__.py deploy: diff --git a/TODO.md b/TODO.md index a08bed5..af716f4 100644 --- a/TODO.md +++ b/TODO.md @@ -8,3 +8,5 @@ * [ ] Add CI to push server to Docker hub * [ ] Support common badge server URL structure * [ ] Documentation for all docker bits +* [ ] Update PyPi deployment to use API tokens +* [ ] Update test code to operate against wheel file instead of package directory