From 257b79f13fbf4cb38896d61650f3f82da387d627 Mon Sep 17 00:00:00 2001 From: nlsdfnbch <23okrs35+github@mykolab.com> Date: Wed, 22 Nov 2017 09:35:14 +0100 Subject: [PATCH 1/3] added linters to travis --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index e553b74..d9301da 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,11 +10,14 @@ python: - "pypy-5.3.1" install: + - pip install pylint pydocstyle - pip install -U setuptools - pip install -e . - pip install -r requirements-dev.txt script: + - pylint --rcfile=pylint.rc pirant + - pydocstyle pirant - pytest tests - coverage run --source=pirant setup.py test From 7018deb43647ccbc3a334ac31a7dd7ed346088e5 Mon Sep 17 00:00:00 2001 From: nlsdfnbch <23okrs35+github@mykolab.com> Date: Wed, 22 Nov 2017 09:35:27 +0100 Subject: [PATCH 2/3] Revert "added linters to travis" This reverts commit 257b79f13fbf4cb38896d61650f3f82da387d627. --- .travis.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index d9301da..e553b74 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,14 +10,11 @@ python: - "pypy-5.3.1" install: - - pip install pylint pydocstyle - pip install -U setuptools - pip install -e . - pip install -r requirements-dev.txt script: - - pylint --rcfile=pylint.rc pirant - - pydocstyle pirant - pytest tests - coverage run --source=pirant setup.py test From fe619243c1d1d2ea2c8229271e6815df0bb984d1 Mon Sep 17 00:00:00 2001 From: nlsdfnbch <23okrs35+github@mykolab.com> Date: Thu, 23 Nov 2017 12:40:44 +0100 Subject: [PATCH 3/3] Added usage of build stages, added pypi deploy --- .travis.yml | 39 +++++++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index e553b74..97ea1f8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +1,16 @@ language: python python: - - "2.7" - - "3.3" - - "3.4" + - 2.7 + - 3.3 + - 3.4 # PyPy versions - - "pypy" # PyPy2 2.5.0 - - "pypy3" # Pypy3 2.4.0 - - "pypy-5.3.1" + - pypy # PyPy2 2.5.0 + - pypy3 # Pypy3 2.4.0 + - pypy-5.3.1 install: + - pip install pylint pydocstyle - pip install -U setuptools - pip install -e . - pip install -r requirements-dev.txt @@ -18,5 +19,31 @@ script: - pytest tests - coverage run --source=pirant setup.py test +jobs: + include: + - stage: Linting + python: 3.6 + script: pylint --rcfile=pylint.rc pirant + script: pydocstyle pirant + - stage: Deploy + script: skip + python: 3.6 + deploy: + provider: pypi + user: USERNAME + password: + secure: YOUR_ENCRYPTED_PASSWORD + distributions: "bdist_wheel" + on: + tags: true + + if: branch = master + +stages: + - Linting + - Test + - name: Deploy + if: tag IS present + after_success: - coveralls