diff --git a/.travis.yml b/.travis.yml index e1727b0..90d9bb7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,31 +1,47 @@ language: python python: +- '2.6' +- '2.7' +- '3.4' +- '3.5' - '3.6' +- '3.7' install: - python setup.py install -- pip install mypy -- pip install strip-hints -- pip install -r test-requirements.txt +- if [[ "$TRAVIS_PYTHON_VERSION" == "3.6"]]; then + pip install mypy + pip install strip-hints + pip install nox + fi jobs: include: - stage: test name: static_type script: nox -s static_type + if: "$TRAVIS_PYTHON_VERSION" = "3.6" - stage: test name: pytests_with_hints script: nox -s pytests_with_hints + if: "$TRAVIS_PYTHON_VERSION" = "3.6" - stage: test name: pytests_no_hints script: nox -s pytests_no_hints + if: "$TRAVIS_PYTHON_VERSION" = "3.6" - stage: test name: coverage script: coverage run --source ascii_canvas -m pytest ./tests --cov=ascii_canvas --cov-report=xml - --cov-report=term + --cov-report=term + if: "$TRAVIS_PYTHON_VERSION" = "3.6" after_success: - python-codacy-coverage -r coverage.xml -- stubgen ascii_canvas --recursive -o . -- python strip-type-hints.py +before_deploy: + if ! [[ "$TRAVIS_PYTHON_VERSION" IN ("2.6", "2.7", "3.4", "3.5")]]; then + stubgen ascii_canvas --recursive -o . + python strip-type-hints.py + else + stubgen ascii_canvas --recursive -o . + fi deploy: provider: pypi skip_existing: true diff --git a/setup.py b/setup.py index 56b967a..5d5d44d 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ long_description = stream.read() setup(name='ascii-canvas', - version='1.2.3', + version='1.2.4', author='Paul Schweizer', author_email='paulschweizer@gmx.net', description='Treat strings like Items on a 2D Canvas.', @@ -21,5 +21,5 @@ 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7' + 'Programming Language :: Python :: 3.7', ])