Skip to content

Commit 1346734

Browse files
Try to fix the before_deploy commands.
1 parent 3def0bd commit 1346734

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.travis.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ before_install:
3434

3535
script: script/travisbuild
3636

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
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
4545
4646
deploy:
4747
provider: rubygems

0 commit comments

Comments
 (0)