Skip to content

Commit 83d5e84

Browse files
committed
Do not automatically tag releases from Travis
This behavior interferes with GitHub's vendoring/packaging scripts
1 parent 1346734 commit 83d5e84

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

.travis.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,3 @@ before_install:
3333
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then ./vendor/libgit2/script/install-deps-osx.sh; fi
3434

3535
script: script/travisbuild
36-
37-
before_deploy: |
38-
echo "module Rugged" > lib/rugged/version.rb
39-
if [ ! -z "$TRAVIS_TAG" ]; then
40-
echo " Version = VERSION = \"$(echo "$TRAVIS_TAG" | tail -c +2)\"" >> lib/rugged/version.rb
41-
else
42-
echo " Version = VERSION = \"$(git describe --tags --first-parent | tail -c +2 | tr '-' '.').pre\"" >> lib/rugged/version.rb
43-
fi;
44-
echo "end" >> lib/rugged/version.rb
45-
46-
deploy:
47-
provider: rubygems
48-
api_key:
49-
secure: ffCPQ8RQ+0GTAeHmBUCBMKa2K0aegFd++BQ9m8kNSd2pC/PtWtrqeiG6ZkcEsaN/CbiJrNsetibqMq44IL+r5Eq2NyQC869VfOb0KRExI2ovVfan0NoE1U+pyFOwMy7V5OG6EZ1rCkFazJdEHiPbjO0xoEq4jZuygEIAhQJGvJo=
50-
gem: rugged
51-
on:
52-
condition:
53-
- '"$TRAVIS_OS_NAME" = "linux"'
54-
- '"$TRAVIS_TAG" != "" || "$TRAVIS_BRANCH" = "master"'
55-
repo: libgit2/rugged
56-
ruby: 2.2.2

lib/rugged/version.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
module Rugged
2-
# This file is automatically overwritten during a deployment from Travis.
3-
Version = VERSION = "#{`git describe --tags --first-parent | tail -c +2 | tr '-' '.'`.strip}.pre" rescue "0.0.0.dev"
2+
Version = VERSION = '0.23.1'
43
end

0 commit comments

Comments
 (0)