-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- upgrade travis.yaml file - added py36 and py37 testing - fixed release logic, including removal of obsolete release.sh script
- Loading branch information
Showing
3 changed files
with
42 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,80 @@ | ||
--- | ||
language: python | ||
cache: | ||
- pip | ||
sudo: false | ||
os: | ||
- linux | ||
stages: | ||
- lint | ||
- docs | ||
- test | ||
- phase1 | ||
- phase2 | ||
- deploy | ||
install: | ||
- pip install -q tox-travis tox-pyenv virtualenv wheel | cat | ||
before_install: | ||
- which tox >/dev/null || if [ -z ${VIRTUAL_ENV+x} ]; then python -m pip install --user tox tox-pyenv wheel ; else python -m pip install tox tox-pyenv wheel twine; fi | ||
notifications: | ||
email: | ||
- [email protected] | ||
jobs: | ||
include: | ||
- stage: lint | ||
script: python -m tox | ||
python: 2.7 | ||
- stage: phase1 | ||
script: | ||
- python setup.py sdist bdist_wheel | ||
- python -m tox | ||
env: TOXENV=lint | ||
- stage: docs | ||
python: '2.7' | ||
- stage: phase1 | ||
script: python -m tox | ||
python: 2.7 | ||
python: '2.7' | ||
env: TOXENV=docs | ||
- stage: test | ||
- stage: phase1 | ||
script: python -m tox | ||
python: 2.7 | ||
python: '2.7' | ||
env: TOXENV=py27 | ||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) -e TOX_ENV | ||
- stage: test | ||
- stage: phase2 | ||
script: python -m tox | ||
python: 3.4 | ||
python: '3.4' | ||
env: TOXENV=py34 | ||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) -e TOX_ENV | ||
- stage: test | ||
- stage: phase2 | ||
script: python -m tox | ||
python: 3.5 | ||
python: '3.5' | ||
env: TOXENV=py35 | ||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) -e TOX_ENV | ||
- stage: test | ||
- stage: phase2 | ||
script: python -m tox | ||
python: 3.6 | ||
python: '3.6' | ||
env: TOXENV=py36 PYTHON='3.6' PYENV_VERSION='system' | ||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) -e TOX_ENV | ||
- stage: phase2 | ||
script: python -m pip install -q tox-travis && python -m tox | ||
python: '3.7' | ||
env: TOXENV=py37 PYTHON='3.7' | ||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) -e TOX_ENV | ||
dist: xenial | ||
sudo: required | ||
- stage: deploy | ||
script: | ||
- export PACKAGE_NAME=$(python setup.py --name) | ||
- export PACKAGE_VERSION=$(python setup.py --version) | ||
- python setup.py sdist bdist_wheel | ||
- python -m twine upload dist/* | ||
if: tag IS present | ||
deploy: | ||
- provider: pypi | ||
user: pycontribs | ||
password: | ||
secure: beq1+egB93Y9a51NOdrG0ja9zKb+g3/JejoM6kUpm2FU37a9+AU3fAAoGdYcrRqF2fmrBGuYNW29vJEzaDT4YK/FSMNrcipt8U3yyNXJ0oFbVsi0FLeDlBzEFarhY71BguEoJlf+nwCphPXCj/aJPxNiAKYnNCfBdfP0WKH/N5M= | ||
distributions: sdist bdist_wheel | ||
skip_cleanup: true | ||
on: | ||
tags: true | ||
repo: pycontribs/tendo | ||
- provider: releases | ||
api_key: | ||
secure: Dz7yMcIBxTKD2zYi0ph9qTz2N0AdmOWD9eI/CMW3DdXh15e4fQqL7O5cr4Sn+FSKHMbUCUoztXwJsYLbrCPB2tH8HliPhSuNzb0CwScRD9wSzQzhli10YPj+Oe2UlPOcIWQFRYTUQ1tfpvfDcvRL7klLDiKUpghJ+xf7crXzqGE= | ||
secure: 0Id8K7AgZ4KtOsa1N8Z0B7qCz9H/hP8xr475u+Q7aapguCGMf3K4KEJZ/yKFNxgPMM2Rl3n2jFsO3+0AfSV+no7ISP9v592FY/0vIGkrZ/aqxvcnUFpwsrXvS5bNfWEfTqFFddwG6u3vMFHyg0vCbUGOXl35EGH+xlnIhYPU30XFxAWwBQPOrQW1qmkkA3VMxtOMgYFzCd42P+7qo+Wt2Wcg7BFNpMVxMPEDUd1Ooi1zOOLJTl8FWo1s5ayksG5RxnYNqGTK+7FEfB/1FNa5SGOrtFXedWcH2qjMe3VUVaEHowNvOC+48DVjmlevpLBsarHRCvFES36MuJfvi3uaVPZDgkXiUV/uY0OhJDMclfG/tI7etefObLLft2RKusl06CNavDJN9RmKrjtvzOSo1sfjtdFu/2er80lrE8ph8olymXZHeF7EbDn+51vALBuICL8M7yaoO6v3rCg+QkKSJB+9/75nDl4rWusqdxGdt/9cG6et3l+yBiinrFZ6BHMk8UH7ItD17TQU6tiQDi7Fj1vEW3P++qLnQUkcdnCf0ASJBJCL1X1Pa9ddgtxf+4XuQqNlXvpyGhbTrDAdZtGjk2As0eL4Uq3xqiVGWEdj2veTGS4oct8dwmpuRRmUsUGhPX/LyYpiUpCkEZl71lZwK+ESeBL+zWkQuuJLMdT0/KQ= | ||
file_glob: true | ||
file: | ||
- dist/$PACKAGE_NAME-$PACKAGE_VERSION.tar.gz | ||
- dist/$PACKAGE_NAME-$PACKAGE_VERSION-py2.py3-none-any.whl | ||
- dist/* | ||
- ChangeLog | ||
skip_cleanup: true | ||
on: | ||
tags: true | ||
repo: pycontribs/tendo | ||
repo: pycontribs/jira | ||
branch: master | ||
env: | ||
global: | ||
- PIP_DISABLE_PIP_VERSION_CHECK=1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters