From 99138d8178b5273395a2f25f457042ea0b43b988 Mon Sep 17 00:00:00 2001 From: "Lewis A. Marshall" Date: Sun, 22 Nov 2015 00:56:16 -0800 Subject: [PATCH] Added automatic deployment to travis. --- .travis.yml | 54 +++++++++++++++++++++++++---------------------------- 1 file changed, 25 insertions(+), 29 deletions(-) diff --git a/.travis.yml b/.travis.yml index 309b80c..40fef7c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,36 +1,32 @@ sudo: false - language: python - python: - - "2.7" - - "3.4" - +- '2.7' +- '3.4' notifications: email: false - install: - # - sudo apt-get update - - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then - wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh; - else - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; - fi - - - bash miniconda.sh -b -p $HOME/miniconda - - export PATH="$HOME/miniconda/bin:$PATH" - - hash -r - - conda config --set always_yes yes --set changeps1 no - - conda update -q conda - - conda info -a - - # Replace dep1 dep2 ... with your dependencies - - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy nose coverage biopython click - - source activate test-environment - - pip install coveralls - +- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh + -O miniconda.sh; else wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh + -O miniconda.sh; fi +- bash miniconda.sh -b -p $HOME/miniconda +- export PATH="$HOME/miniconda/bin:$PATH" +- hash -r +- conda config --set always_yes yes --set changeps1 no +- conda update -q conda +- conda info -a +- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy nose + coverage biopython click +- source activate test-environment +- pip install coveralls script: - - coverage run --source=ionize setup.py test - -after_success: - coveralls +- coverage run --source=ionize setup.py test +after_success: coveralls +deploy: + provider: pypi + user: lewis.a.marshall + password: + secure: ED3TmnEto2g+XHZXe4HdxqQEuyn5V/erpTjbH5tkwOA2UB/eSe3mcd9nBDWg0VLeCqYAbEkIA5N+NCgKYP4n7vMYNNzU/pZ+q63cJt8DNqd2Ocxo1G7g0LEsRnuDTEad2cMKHc7eWtidJUer1j6LxzASqsK5doOudhgY1SxEX1Q= + on: + tags: true + branch: master