Skip to content

Commit

Permalink
better conditions for pypi deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
wojcikstefan committed Feb 16, 2017
1 parent 92c1131 commit b5a2fed
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ deploy:
# create a source distribution and a pure python wheel for faster installs
distributions: "sdist bdist_wheel"

# only deploy on tagged commits (aka GitHub releases)
# only deploy on tagged commits (aka GitHub releases) on the master branch
# and only for the builds running Python 2.7 along with dev MongoEngine (we
# run Travis against many different Python and MongoEngine versions and we
# don't want the deploy to occur multiple times).
on:
branch: master
tags: true
condition: "$MONGOENGINE = dev"
python: 2.7

0 comments on commit b5a2fed

Please sign in to comment.