summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2016-10-27 23:45:56 +0300
committerMerry <MerryMage@users.noreply.github.com>2016-10-27 21:45:56 +0100
commit0dfad003dcc017e70a67f9f81787489422fb97e1 (patch)
tree4b01416f706b36d22f0334e451b621c04ddad906
parenteac57e29c1c6eaa0411874ae4b03fa8739772774 (diff)
Travis: only upload for push (#2134)
-rwxr-xr-x.travis-upload.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/.travis-upload.sh b/.travis-upload.sh
index 7838bf079..1bec74b3d 100755
--- a/.travis-upload.sh
+++ b/.travis-upload.sh
@@ -1,4 +1,4 @@
-if [ "$TRAVIS_BRANCH" = "master" ]; then
+if [ "$TRAVIS_EVENT_TYPE" = "push" ]&&[ "$TRAVIS_BRANCH" = "master" ]; then
GITDATE="`git show -s --date=short --format='%ad' | sed 's/-//g'`"
GITREV="`git show -s --format='%h'`"