[skip build] testing travis script
This commit is contained in:
parent
98adda34c9
commit
cf8dac3538
|
@ -7,6 +7,8 @@ rev=$(git rev-parse --short HEAD)
|
||||||
git config --global user.name "Travis CI"
|
git config --global user.name "Travis CI"
|
||||||
git config --global user.email "jack.humb+travis.ci@gmail.com"
|
git config --global user.email "jack.humb+travis.ci@gmail.com"
|
||||||
|
|
||||||
|
if [[ "$TRAVIS_BRANCH" == "master" ]] ; then
|
||||||
|
|
||||||
increment_version ()
|
increment_version ()
|
||||||
{
|
{
|
||||||
declare -a part=( ${1//\./ } )
|
declare -a part=( ${1//\./ } )
|
||||||
|
@ -21,7 +23,7 @@ if [[ $NEFM -gt 0 ]] ; then
|
||||||
lasttag=$(git tag | grep -Ev '\-' | head -1)
|
lasttag=$(git tag | grep -Ev '\-' | head -1)
|
||||||
newtag=$(increment_version $lasttag)
|
newtag=$(increment_version $lasttag)
|
||||||
git tag $newtag
|
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
|
else
|
||||||
echo "No essential files modified."
|
echo "No essential files modified."
|
||||||
fi
|
fi
|
||||||
|
@ -48,3 +50,5 @@ if [[ "$TRAVIS_COMMIT_MESSAGE" != *"[skip build]"* ]] ; then
|
||||||
git push
|
git push
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
fi
|
Loading…
Reference in New Issue