From 8bec2712a70e3cc6acf5e6eae8f250a7538157ae Mon Sep 17 00:00:00 2001 From: Matthew Balvanz Date: Wed, 24 May 2017 16:51:05 -0500 Subject: [PATCH] Setup Travis CI to publish to PyPi --- .travis.yml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 98f6faa81..6460eb5b7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,7 @@ -language: python +language: + - python + - ruby + python: - "2.7" - "3.3" @@ -6,6 +9,8 @@ python: - "3.5" - "3.6" +rvm: "2.2" + sudo: false install: pip install -r requirements_dev.txt @@ -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