Skip to content

Commit

Permalink
Make Travis CI upload package to PyPI when pushing a new tag
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzosaino committed Jul 30, 2017
1 parent 4de1d62 commit a70a06c
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,26 @@ python:
addons:
apt:
packages:
- libatlas-dev
- libatlas-base-dev
- liblapack-dev
- gfortran
- libsuitesparse-dev
- libgdal-dev
- graphviz
- mono-devel

before_install:
- uname -a
- printenv
- libatlas-dev
- libatlas-base-dev
- liblapack-dev
- gfortran
- libsuitesparse-dev
- libgdal-dev
- graphviz
- mono-devel

install:
- travis_wait 30 make install # Building Scipy from sources on Python 2.7 takes more than 10 minutes
- travis_wait 30 make install # Building Scipy from sources on Python 2.7 may take more than 10 minutes

script:
- make test

deploy:
provider: pypi
user: $PYPI_USER
password:
secure: $PYPI_PASSWD
on:
tags: true
condition: $TRAVIS_PYTHON_VERSION = "2.7" # Ensure it runs once per build

0 comments on commit a70a06c

Please sign in to comment.