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
5a69f7ce
Commit
5a69f7ce
authored
Apr 16, 2015
by
Marius Rackwitz
Committed by
Samuel E. Giddins
Apr 18, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Rakefile] Move tasks for fixture tarballs into separate namespace
parent
efd19fd6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
Rakefile
Rakefile
+11
-7
No files found.
Rakefile
View file @
5a69f7ce
...
...
@@ -91,19 +91,19 @@ begin
unit_specs_command
=
"bundle exec bacon
#{
specs
(
'unit/**/*'
)
}
"
desc
'Run the unit specs'
task
:unit
=>
:unpack_fixture_tarballs
do
task
:unit
=>
'fixture_tarballs:unpack'
do
sh
unit_specs_command
end
desc
'Run the unit specs quietly (fail fast, display only one failure)'
task
:unit_quiet
=>
:unpack_fixture_tarballs
do
task
:unit_quiet
=>
'fixture_tarballs:unpack'
do
sh
"
#{
unit_specs_command
}
-q"
end
#--------------------------------------#
desc
'Run the functional specs'
task
:functional
,
[
:spec
]
=>
:unpack_fixture_tarballs
do
|
_t
,
args
|
task
:functional
,
[
:spec
]
=>
'fixture_tarballs:unpack'
do
|
_t
,
args
|
args
.
with_defaults
(
:spec
=>
'**/*'
)
sh
"bundle exec bacon
#{
specs
(
"functional/
#{
args
[
:spec
]
}
"
)
}
"
end
...
...
@@ -126,7 +126,7 @@ begin
# The specs helper interfere with the integration 2 specs and thus they need
# to be run separately.
#
task
:all
=>
:unpack_fixture_tarballs
do
task
:all
=>
'fixture_tarballs:unpack'
do
ENV
[
'GENERATE_COVERAGE'
]
=
'true'
puts
"
\033
[0;32mUsing
#{
`ruby --version`
}
\033
[0m"
...
...
@@ -143,8 +143,11 @@ begin
Rake
::
Task
[
'rubocop'
].
invoke
end
namespace
:fixture_tarballs
do
task
:default
=>
:unpack
desc
'Rebuild all the fixture tarballs'
task
:rebuild_fixture_tarballs
do
task
:rebuild
do
tarballs
=
FileList
[
'spec/fixtures/**/*.tar.gz'
]
tarballs
.
each
do
|
tarball
|
basename
=
File
.
basename
(
tarball
)
...
...
@@ -153,7 +156,7 @@ begin
end
desc
'Unpacks all the fixture tarballs'
task
:unpack_fixture_tarballs
do
task
:unpack
do
tarballs
=
FileList
[
'spec/fixtures/**/*.tar.gz'
]
tarballs
.
each
do
|
tarball
|
basename
=
File
.
basename
(
tarball
)
...
...
@@ -162,6 +165,7 @@ begin
end
end
end
end
desc
'Removes the stored VCR fixture'
task
:clean_vcr
do
...
...
@@ -201,7 +205,7 @@ begin
puts
'Integration fixtures updated, commit and push in the `spec/cocoapods-integration-specs` submodule'
end
task
:clean_env
=>
[
:clean_vcr
,
:unpack_fixture_tarballs
,
'ext:cleanbuild'
]
task
:clean_env
=>
[
:clean_vcr
,
'fixture_tarballs:unpack'
,
'ext:cleanbuild'
]
end
# Examples
...
...
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