소스 검색

[skip build] testing travis script

Jack Humbert 8 년 전
부모
커밋
cf8dac3538
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      util/travis_compiled_push.sh

+ 5 - 1
util/travis_compiled_push.sh

@@ -7,6 +7,8 @@ rev=$(git rev-parse --short HEAD)
 git config --global user.name "Travis CI"
 git config --global user.email "jack.humb+travis.ci@gmail.com"
 
+if [[ "$TRAVIS_BRANCH" == "master" ]] ; then
+
 increment_version ()
 {
   declare -a part=( ${1//\./ } )
@@ -21,7 +23,7 @@ if [[ $NEFM -gt 0 ]] ; then
 	lasttag=$(git tag | grep -Ev '\-' | head -1)
 	newtag=$(increment_version $lasttag)
 	git tag $newtag
-	git push --tags -q https://$GH_TOKEN@github.com/qmk/qmk_firmware-$TRAVIS_BRANCH
+	git push --tags -q https://$GH_TOKEN@github.com/qmk/qmk_firmware-master
 else
 	echo "No essential files modified."
 fi
@@ -47,4 +49,6 @@ if [[ "$TRAVIS_COMMIT_MESSAGE" != *"[skip build]"* ]] ; then
 	git commit -m "generated from qmk/qmk_firmware@${rev}" 
 	git push
 
+fi
+
 fi