From 04bd1d104834f5b42b0461515056304c21848f4c Mon Sep 17 00:00:00 2001 From: Alexey Stepanov Date: Wed, 5 Sep 2018 11:27:59 +0200 Subject: [PATCH 1/7] try to switch on the native python 3.7 --- .travis.yml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 773b450..f239241 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,25 @@ sudo: false language: python os: linux -python: -- 3.4 -- 3.5 -- 3.6 -- &mainstream_python 3.7-dev -- &pypy pypy3.5 +matrix: + include: + - python: 3.4 + env: + - TOXENV=py34 + - python: 3.5 + env: + - TOXENV=py35 + - python: 3.6 + env: + - TOXENV=py36 + - &mainstream_python python: 3.7 + dist: xenial + sudo: true + env: + - TOXENV=py37 + - &pypy pypy3.5 + env: + - TOXENV=pypy3 install: - &upgrade_python_toolset pip install --upgrade pip setuptools wheel - pip install tox-travis From e3551e648ab4597669f7ed1d283a336f320fb0d2 Mon Sep 17 00:00:00 2001 From: Alexey Stepanov Date: Wed, 5 Sep 2018 11:54:52 +0200 Subject: [PATCH 2/7] req for nocov job --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 0f5fb09..fd8d92a 100644 --- a/tox.ini +++ b/tox.ini @@ -20,7 +20,7 @@ deps = pytest-cov pytest-html pytest-sugar - py{34,35,36}-nocov: Cython + py{34,35,36,37}-nocov: Cython -r{toxinidir}/CI_REQUIREMENTS.txt commands = From e3afe5b163ff7cf081f1eb62fce6f835d0690043 Mon Sep 17 00:00:00 2001 From: Alexey Stepanov Date: Wed, 5 Sep 2018 11:59:39 +0200 Subject: [PATCH 3/7] fix travis.yml --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index f239241..f099168 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,7 @@ matrix: - python: 3.6 env: - TOXENV=py36 - - &mainstream_python python: 3.7 + - python: 3.7 dist: xenial sudo: true env: @@ -42,7 +42,7 @@ jobs: after_success: skip - stage: Code style check - python: *mainstream_python + python: 3.7 install: - *upgrade_python_toolset - pip install tox From 13ad9dc3343c9739ce208de8c03ce9a245aba816 Mon Sep 17 00:00:00 2001 From: Alexey Stepanov Date: Wed, 5 Sep 2018 12:01:11 +0200 Subject: [PATCH 4/7] also pypy record --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index f099168..bf820c7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,7 +17,7 @@ matrix: sudo: true env: - TOXENV=py37 - - &pypy pypy3.5 + - python: pypy3.5 env: - TOXENV=pypy3 install: @@ -54,7 +54,7 @@ jobs: # This prevents job from appearing in test plan unless commit is tagged: if: tag IS present # Run on pypy to build not cythonized wheel - python: *pypy + python: pypy3.5 services: - docker install: From cbd35f138918ad030d2244748cf51ee679ecd3a7 Mon Sep 17 00:00:00 2001 From: Alexey Stepanov Date: Wed, 5 Sep 2018 13:16:23 +0200 Subject: [PATCH 5/7] try with stages --- .travis.yml | 87 +++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 64 insertions(+), 23 deletions(-) diff --git a/.travis.yml b/.travis.yml index bf820c7..0a7957a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,36 +1,57 @@ sudo: false language: python os: linux -matrix: - include: - - python: 3.4 - env: - - TOXENV=py34 - - python: 3.5 - env: - - TOXENV=py35 - - python: 3.6 - env: - - TOXENV=py36 - - python: 3.7 - dist: xenial - sudo: true - env: - - TOXENV=py37 - - python: pypy3.5 - env: - - TOXENV=pypy3 install: - &upgrade_python_toolset pip install --upgrade pip setuptools wheel -- pip install tox-travis +- pip install tox - pip install coveralls -script: tox +script: [] after_success: - coveralls jobs: fast_finish: true include: + - stage: test + python: 3.4 + script: + - tox -e py34 + - stage: test + python: 3.4 + script: + - tox -e py34-nocov + + - stage: test + python: 3.5 + script: + - tox -e py35 + - stage: test + python: 3.5 + script: + - tox -e py35-nocov + + - stage: test + python: 3.6 + script: + - tox -e py36 + - stage: test + python: 3.6 + script: + - tox -e py36-nocov + + - stage: test + python: 3.7 + dist: xenial + sudo: true + script: + - tox -e py37 + - stage: test + python: 3.7 + dist: xenial + sudo: true + script: + - tox -e py37-nocov + - stage: Static analisys python: 3.6 services: [] @@ -38,11 +59,31 @@ jobs: - *upgrade_python_toolset - pip install tox script: - - tox -e pylint,bandit,mypy + - tox -e pylint + after_success: skip + - stage: Static analisys + python: 3.6 + services: [] + install: + - *upgrade_python_toolset + - pip install tox + script: + - tox -e bandit + after_success: skip + - stage: Static analisys + python: 3.7 + dist: xenial + sudo: true + services: [] + install: + - *upgrade_python_toolset + - pip install tox + script: + - tox mypy after_success: skip - stage: Code style check - python: 3.7 + python: 3.6 install: - *upgrade_python_toolset - pip install tox From c2848f6e875e82d2064ef6596e496b3799e9ff56 Mon Sep 17 00:00:00 2001 From: Alexey Stepanov Date: Wed, 5 Sep 2018 13:23:33 +0200 Subject: [PATCH 6/7] try naming --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 0a7957a..d8dae6b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -52,6 +52,12 @@ jobs: script: - tox -e py37-nocov + - stage: test + name: "PyPy3" + python: pypy3.5 + script: + - tox -e pypy3 + - stage: Static analisys python: 3.6 services: [] From 28ef7a04f4cc5322c7e1c5882b215f4c7a501bd9 Mon Sep 17 00:00:00 2001 From: Alexey Stepanov Date: Wed, 5 Sep 2018 13:27:41 +0200 Subject: [PATCH 7/7] complete with tags --- .travis.yml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d8dae6b..d17249c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,44 +13,56 @@ jobs: fast_finish: true include: - stage: test + name: "Python 3.4" python: 3.4 script: - tox -e py34 - stage: test + name: "Python 3.4 no coverage" python: 3.4 script: - tox -e py34-nocov + after_success: skip - stage: test + name: "Python 3.5" python: 3.5 script: - tox -e py35 - stage: test + name: "Python 3.5 no coverage" python: 3.5 script: - tox -e py35-nocov + after_success: skip - stage: test + name: "Python 3.6" python: 3.6 script: - tox -e py36 - stage: test + name: "Python 3.6 no coverage" python: 3.6 script: - tox -e py36-nocov + after_success: skip - stage: test + name: "Python 3.7" python: 3.7 dist: xenial sudo: true script: - tox -e py37 - stage: test + name: "Python 3.7 no coverage" python: 3.7 dist: xenial sudo: true script: - tox -e py37-nocov + after_success: skip - stage: test name: "PyPy3" @@ -59,6 +71,7 @@ jobs: - tox -e pypy3 - stage: Static analisys + name: "PyLint" python: 3.6 services: [] install: @@ -68,6 +81,7 @@ jobs: - tox -e pylint after_success: skip - stage: Static analisys + name: "Bandit" python: 3.6 services: [] install: @@ -77,6 +91,7 @@ jobs: - tox -e bandit after_success: skip - stage: Static analisys + name: "MyPy" python: 3.7 dist: xenial sudo: true @@ -89,12 +104,22 @@ jobs: after_success: skip - stage: Code style check + name: "PEP8" + python: 3.6 + install: + - *upgrade_python_toolset + - pip install tox + script: + - tox -e pep8 + after_success: skip + - stage: Code style check + name: "PEP257" python: 3.6 install: - *upgrade_python_toolset - pip install tox script: - - tox -e pep8,pep257 + - tox -e pep257 after_success: skip - stage: deploy