From: Shane Jaroch Date: Mon, 18 Jul 2022 18:28:39 +0000 (-0400) Subject: compat/travis-ci test python 3.4 and 3.5 (#8) X-Git-Tag: v0.2.5~5 X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=ccf8b1b59b4d30e9e829e571310c711af4d1ae22;p=nutratech%2Fcli.git compat/travis-ci test python 3.4 and 3.5 (#8) * matrix build, and try bionic not xenial * try it on xenial bionic worked with: 3.6, 3.9, pypy3 * only submit coverage report for python 3.6 * 3.7 won't work apparently. need to fix 3.4 and 3.5 * drop tabulate, one bugfix version * use dogshit old version of coverage for travis ci * don't use make _deps in travis * nvm its stuck on old coveralls too * back to explicit version of colorama * travis-ci drop -o log_cli (doesn't work on 5.5) * fix on win xp setup * filter unsupported setup.cfg props on old coverage --- diff --git a/.editorconfig b/.editorconfig index d9f1e38..3f9ce44 100644 --- a/.editorconfig +++ b/.editorconfig @@ -16,6 +16,7 @@ max_line_length = 88 [*.{yaml,yml}] indent_size = 2 +max_line_length = 80 [Makefile] diff --git a/.travis.yml b/.travis.yml index 3b7fc41..3f3fdbe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,12 +3,30 @@ dist: xenial os: ["linux"] language: python python: - - "3.6" + - 3.4 + - 3.5 + - 3.6 + - 3.8 + - 3.9 + - pypy3 +cache: pip git: submodules: true + +before_install: + - > + if [[ "$(python --version)" =~ "3.4." ]]; then + grep -v skip_empty setup.cfg > setup.cfg2 && mv setup.cfg2 setup.cfg; + fi + install: - python -m pip install coveralls - - make _deps + - python -m pip install colorama==0.4.1 + - python -m pip install coverage>=4.5.4 + - python -m pip install -r requirements.txt + - python -m pip install -r requirements-test-win_xp-ubu1604.txt + script: - - make _test - - coveralls + - coverage run -m pytest -v -s -p no:cacheprovider tests/ + - coverage report + - if [[ "$(python --version)" =~ "3.6." && "$(which pypy)" == "" ]]; then coveralls; fi diff --git a/requirements-test-win_xp-ubu1604.txt b/requirements-test-win_xp-ubu1604.txt index 39fde64..0789c2f 100644 --- a/requirements-test-win_xp-ubu1604.txt +++ b/requirements-test-win_xp-ubu1604.txt @@ -1,3 +1,4 @@ # Don't update these, they are the last supported versions on winXP, Ubuntu 16.04 & Python 3.4 -coverage==5.5 +# coverage 5.5 technically works, but not for Travis CI +coverage>=4.5.4,<=5.5 pytest==3.2.5 diff --git a/requirements.txt b/requirements.txt index 67ad948..4bf2690 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -argcomplete==2.0.0 -colorama==0.4.5 +argcomplete>=1.12.3 +colorama>=0.4.1 fuzzywuzzy==0.18.0 -tabulate==0.8.10 +tabulate>=0.8.9