1
0
Fork 0
forked from suyu/suyu

Travis: only upload for push (#2134)

This commit is contained in:
wwylele 2016-10-27 23:45:56 +03:00 committed by Merry
parent eac57e29c1
commit 0dfad003dc

View file

@ -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'`" GITDATE="`git show -s --date=short --format='%ad' | sed 's/-//g'`"
GITREV="`git show -s --format='%h'`" GITREV="`git show -s --format='%h'`"