diff --git a/.travis.yml b/.travis.yml index fae333d..7cc100b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,10 +3,11 @@ python: - '2.7' - '3.5' - '3.6' +- '3.7' install: - pip install -U setuptools pip -r build-requirements.txt script: -- python ./test.py +- pytest --doctest-modules --cov=anybadge anybadge.py tests deploy: - provider: pypi user: jongracecox @@ -16,7 +17,7 @@ deploy: on: tags: true all_branches: true - python: '3.6' + python: '3.7' - provider: pypi user: jongracecox password: @@ -24,4 +25,4 @@ deploy: distributions: sdist bdist_wheel on: branch: master - python: '3.6' + python: '3.7' diff --git a/test.py b/test.py deleted file mode 100755 index 2869a0d..0000000 --- a/test.py +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/python -""" -anybadge test module. -""" - -import anybadge - -if __name__ == '__main__': - - thresholds={2: 'red', 4: 'orange', 6: 'green', 8: 'brightgreen'} - - badge = anybadge.Badge('test', '2.22', value_suffix='%', - thresholds=thresholds, text_color='#010101,#101010') - - print(badge.badge_svg_text)