Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
3f36305b
Commit
3f36305b
authored
Jul 09, 2012
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Rakefile] Update release task now that `develop` is gone.
parent
7149df10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
Rakefile
Rakefile
+5
-10
No files found.
Rakefile
View file @
3f36305b
...
@@ -79,8 +79,8 @@ namespace :gem do
...
@@ -79,8 +79,8 @@ namespace :gem do
task
:release
do
task
:release
do
unless
ENV
[
'SKIP_CHECKS'
]
unless
ENV
[
'SKIP_CHECKS'
]
if
`git symbolic-ref HEAD 2>/dev/null`
.
strip
.
split
(
'/'
).
last
!=
'
develop
'
if
`git symbolic-ref HEAD 2>/dev/null`
.
strip
.
split
(
'/'
).
last
!=
'
master
'
$stderr
.
puts
"[!] You need to be on the `
develop
' branch in order to be able to do a release."
$stderr
.
puts
"[!] You need to be on the `
master
' branch in order to be able to do a release."
exit
1
exit
1
end
end
...
@@ -120,6 +120,9 @@ namespace :gem do
...
@@ -120,6 +120,9 @@ namespace :gem do
exit
1
exit
1
end
end
# Ensure that the branches are up to date with the remote
sh
"git pull"
puts
"* Running specs"
puts
"* Running specs"
silent_sh
(
'rake spec:all'
)
silent_sh
(
'rake spec:all'
)
...
@@ -138,19 +141,11 @@ namespace :gem do
...
@@ -138,19 +141,11 @@ namespace :gem do
# ENV['FROM_GEM'] = '1'
# ENV['FROM_GEM'] = '1'
# silent_sh "rake examples:build"
# silent_sh "rake examples:build"
# Ensure that the branches are up to date with the remote
sh
"git pull"
# Then release
# Then release
sh
"git commit lib/cocoapods.rb -m 'Release
#{
gem_version
}
'"
sh
"git commit lib/cocoapods.rb -m 'Release
#{
gem_version
}
'"
sh
"git push origin develop"
sh
"git checkout master"
sh
"git pull"
sh
"git merge develop -m 'Release
#{
gem_version
}
'"
sh
"git tag -a
#{
gem_version
}
-m 'Release
#{
gem_version
}
'"
sh
"git tag -a
#{
gem_version
}
-m 'Release
#{
gem_version
}
'"
sh
"git push origin master"
sh
"git push origin master"
sh
"git push origin --tags"
sh
"git push origin --tags"
sh
"git checkout develop"
sh
"gem push
#{
gem_filename
}
"
sh
"gem push
#{
gem_filename
}
"
# Update the last version in CocoaPods-version.yml
# Update the last version in CocoaPods-version.yml
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment