Skip to content

Commit

Permalink
Setup Travis CI to publish to PyPi
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewbalvanz-wf committed May 24, 2017
1 parent d67a015 commit 8bec271
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
language: python
language:
- python
- ruby

python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"

rvm: "2.2"

sudo: false

install: pip install -r requirements_dev.txt
Expand All @@ -14,3 +19,24 @@ script:
- flake8
- pydocstyle pact
- tox --develop
- if [[ $TRAVIS_PYTHON_VERSION == "2.7" ]]; then rvm install 2.2.2; fi
- if [[ $TRAVIS_PYTHON_VERSION == "2.7" ]]; then rvm use 2.2.2; fi
- ruby --version
- bundler --version
- if [[ $TRAVIS_PYTHON_VERSION == "2.7" ]]; then make package; fi

before_deploy:
- export RELEASE_PACKAGE=$(ls dist/pact-python-*.tar.gz)
- echo "deploying $RELEASE_PACKAGE"

deploy:
provider: pypi
username: mkbalvanz
password:
secure: W8osmmZ2F+XACUrh0gLedBhvN9zjo9FrUKgQQ/bdgeol+Qo9gyn0cu9RJd/jzlOyHHL4GyBxkgPen6J3KKTJE1J8loZF/u0rgl7H8mSq3SAv4zRk2aFBypfqJrUhiTPHcXyn2L3xWC0PfS5F+ANTDuGAIcxS9sUZEu2Snw8H1avTgFhXbEiR+xfg8Qwh9qOVO2TY9YDkTFkpST/wqFLKxstx8z9ek/wSxcAaF6EO55v6oQmtK8vn+AX7VlvwYgbGrTK/D4bdwZpc/YXEnG/zviSBnZKzOpOyg2vIi/yejFsMQVeAlG84xFsax61KrvmZfaNN+NF175hFLBCKNjUMVNaY80bRX9n4inHIBqRYWBsdurlogdfPsDEOBGfPMf2Sy0vWoRFFzRAQk4m6V/g67YdgVjN4Fi+u8CuqD59EoISH8BdwGnFsz22C3KldIZjz2eleMTsvTkq1hX1Y3hlRfIiETpl8YEL9sDMY5nVcnNTCT2ysyHOdEUigzSubzqB5O5WIkBSyDXdkjBW7BiaIAc7jvb3wrnce+M19Y2Aour4C6KEhp05u3ePSGjOBsJtI8U3/kLjrv5wZA40IIarPUDqvKK9tS+LfpEoCqPCEypTJ069lOQRBGsLy+573qsJhcYwwaYx66FcQ7CXVYR2sTQ7m8w5PXBZj60UhOvd1URU=
on:
repo: pact-foundation/pact-python
python: "2.7"
tags: true
server: https://pypi.python.org/pypi
skip_cleanup: true

0 comments on commit 8bec271

Please sign in to comment.