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
743207ee
Commit
743207ee
authored
Jun 07, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Rake] Update CocoaPods-version.yml on release.
parent
36279388
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
Rakefile
Rakefile
+25
-1
No files found.
Rakefile
View file @
743207ee
...
@@ -78,6 +78,7 @@ namespace :gem do
...
@@ -78,6 +78,7 @@ namespace :gem do
desc
"Run all specs, build and install gem, commit version change, tag version change, and push everything"
desc
"Run all specs, build and install gem, commit version change, tag version change, and push everything"
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
!=
'master'
if
`git symbolic-ref HEAD 2>/dev/null`
.
strip
.
split
(
'/'
).
last
!=
'master'
$stderr
.
puts
"[!] You need to be on the `master' 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."
...
@@ -140,6 +141,29 @@ namespace :gem do
...
@@ -140,6 +141,29 @@ namespace :gem do
sh
"git push origin master"
sh
"git push origin master"
sh
"git push origin --tags"
sh
"git push origin --tags"
sh
"gem push
#{
gem_filename
}
"
sh
"gem push
#{
gem_filename
}
"
# Update the last version in CocoaPods-version.yml
specs_branch
=
'0.6'
Dir
.
chdir
(
'../Specs'
)
do
puts
Dir
.
pwd
sh
"git checkout
#{
specs_branch
}
"
sh
"git pull"
yaml_file
=
'CocoaPods-version.yml'
unless
File
.
exist?
(
yaml_file
)
$stderr
.
puts
"[!] Unable to find
#{
yaml_file
}
!"
exit
1
end
cocoapods_version
=
YAML
.
load_file
(
yaml_file
)
cocoapods_version
[
'last'
]
=
gem_version
File
.
open
(
yaml_file
,
"w"
)
do
|
f
|
f
.
write
(
cocoapods_version
.
to_yaml
)
end
sh
"git commit
#{
yaml_file
}
-m 'CocoaPods release
#{
gem_version
}
'"
sh
"git push"
end
end
end
end
end
...
@@ -186,7 +210,7 @@ namespace :spec do
...
@@ -186,7 +210,7 @@ namespace :spec do
sh
"cd
#{
File
.
dirname
(
tarball
)
}
&& rm
#{
basename
}
&& tar -zcf
#{
basename
}
#{
basename
[
0
..-
8
]
}
"
sh
"cd
#{
File
.
dirname
(
tarball
)
}
&& rm
#{
basename
}
&& tar -zcf
#{
basename
}
#{
basename
[
0
..-
8
]
}
"
end
end
end
end
desc
"Unpacks all the fixture tarballs"
desc
"Unpacks all the fixture tarballs"
task
:unpack_fixture_tarballs
do
task
:unpack_fixture_tarballs
do
tarballs
=
FileList
[
'spec/fixtures/**/*.tar.gz'
]
tarballs
=
FileList
[
'spec/fixtures/**/*.tar.gz'
]
...
...
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