Skip to content

Commit b5a2fed

Browse files
committed
better conditions for pypi deployment
1 parent 92c1131 commit b5a2fed

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ deploy:
5858
# create a source distribution and a pure python wheel for faster installs
5959
distributions: "sdist bdist_wheel"
6060

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

0 commit comments

Comments
 (0)