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
0f5481db
Commit
0f5481db
authored
Jun 29, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Rakefile] Improvements to release.
parent
fe6985ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
Rakefile
Rakefile
+6
-4
No files found.
Rakefile
View file @
0f5481db
...
@@ -77,7 +77,7 @@ namespace :gem do
...
@@ -77,7 +77,7 @@ namespace :gem do
end
end
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
=>
:build
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'
...
@@ -93,14 +93,14 @@ namespace :gem do
...
@@ -93,14 +93,14 @@ namespace :gem do
puts
"You are about to release `
#{
gem_version
}
', is that correct? [y/n]"
puts
"You are about to release `
#{
gem_version
}
', is that correct? [y/n]"
exit
if
$stdin
.
gets
.
strip
.
downcase
!=
'y'
exit
if
$stdin
.
gets
.
strip
.
downcase
!=
'y'
diff_lines
=
`git diff --n
umstat
`
.
strip
.
split
(
"
\n
"
)
diff_lines
=
`git diff --n
ame-only
`
.
strip
.
split
(
"
\n
"
)
if
diff_lines
.
size
==
0
||
!
diff_lines
.
first
.
include?
(
'lib/cocoapods.rb'
)
if
diff_lines
.
size
==
0
$stderr
.
puts
"[!] Change the version number yourself in lib/cocoapods.rb"
$stderr
.
puts
"[!] Change the version number yourself in lib/cocoapods.rb"
exit
1
exit
1
end
end
if
diff_lines
.
size
>
1
||
!
diff_lines
.
first
.
include?
(
'lib/cocoapods.rb'
)
if
diff_lines
!=
[
'Gemfile.lock'
,
'lib/cocoapods.rb'
]
$stderr
.
puts
"[!] Only change the version number in a release commit!"
$stderr
.
puts
"[!] Only change the version number in a release commit!"
exit
1
exit
1
end
end
...
@@ -125,6 +125,8 @@ namespace :gem do
...
@@ -125,6 +125,8 @@ namespace :gem do
tmp
=
File
.
expand_path
(
'../tmp'
,
__FILE__
)
tmp
=
File
.
expand_path
(
'../tmp'
,
__FILE__
)
tmp_gems
=
File
.
join
(
tmp
,
'gems'
)
tmp_gems
=
File
.
join
(
tmp
,
'gems'
)
Rake
::
Task
[
'gem:build'
].
invoke
puts
"* Testing gem installation (tmp/gems)"
puts
"* Testing gem installation (tmp/gems)"
silent_sh
"rm -rf '
#{
tmp
}
'"
silent_sh
"rm -rf '
#{
tmp
}
'"
silent_sh
"gem install --install-dir='
#{
tmp_gems
}
'
#{
gem_filename
}
"
silent_sh
"gem install --install-dir='
#{
tmp_gems
}
'
#{
gem_filename
}
"
...
...
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