Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build and deploy #33

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 33 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
language: python

python:
- "2.7"
- "3.3"
- "3.4"
- 2.7
- 3.3
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since, 3.6 will the released pypi package, we can remove 3.3 and add 3.6

- 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
Expand All @@ -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