Skip to content

Commit

Permalink
Do not automatically tag releases from Travis
Browse files Browse the repository at this point in the history
This behavior interferes with GitHub's vendoring/packaging scripts
  • Loading branch information
vmg committed Aug 13, 2015
1 parent 1346734 commit 83d5e84
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
21 changes: 0 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,3 @@ before_install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then ./vendor/libgit2/script/install-deps-osx.sh; fi

script: script/travisbuild

before_deploy: |
echo "module Rugged" > lib/rugged/version.rb
if [ ! -z "$TRAVIS_TAG" ]; then
echo " Version = VERSION = \"$(echo "$TRAVIS_TAG" | tail -c +2)\"" >> lib/rugged/version.rb
else
echo " Version = VERSION = \"$(git describe --tags --first-parent | tail -c +2 | tr '-' '.').pre\"" >> lib/rugged/version.rb
fi;
echo "end" >> lib/rugged/version.rb
deploy:
provider: rubygems
api_key:
secure: ffCPQ8RQ+0GTAeHmBUCBMKa2K0aegFd++BQ9m8kNSd2pC/PtWtrqeiG6ZkcEsaN/CbiJrNsetibqMq44IL+r5Eq2NyQC869VfOb0KRExI2ovVfan0NoE1U+pyFOwMy7V5OG6EZ1rCkFazJdEHiPbjO0xoEq4jZuygEIAhQJGvJo=
gem: rugged
on:
condition:
- '"$TRAVIS_OS_NAME" = "linux"'
- '"$TRAVIS_TAG" != "" || "$TRAVIS_BRANCH" = "master"'
repo: libgit2/rugged
ruby: 2.2.2
3 changes: 1 addition & 2 deletions lib/rugged/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
module Rugged
# This file is automatically overwritten during a deployment from Travis.
Version = VERSION = "#{`git describe --tags --first-parent | tail -c +2 | tr '-' '.'`.strip}.pre" rescue "0.0.0.dev"
Version = VERSION = '0.23.1'
end

0 comments on commit 83d5e84

Please sign in to comment.