Commit 14c1530d authored by Samuel E. Giddins's avatar Samuel E. Giddins

[Rakefile] Add task to run regression tests

parent 94c3b6bb
...@@ -37,6 +37,7 @@ group :development do ...@@ -37,6 +37,7 @@ group :development do
gem 'diffy' gem 'diffy'
gem 'clintegracon' gem 'clintegracon'
gem 'rubocop' gem 'rubocop'
cp_gem 'cocoapods-regression', 'cocoapods-regression'
end end
group :debugging do group :debugging do
......
...@@ -47,6 +47,15 @@ GIT ...@@ -47,6 +47,15 @@ GIT
cocoapods-plugins (0.4.2) cocoapods-plugins (0.4.2)
nap nap
GIT
remote: https://github.com/CocoaPods/cocoapods-regression.git
revision: a8408d39a1450dab526d1a3a2616276408594208
branch: master
specs:
cocoapods-regression (0.1.0)
cocoapods (~> 0.38.2)
xcode-install (~> 0.9.3)
GIT GIT
remote: https://github.com/CocoaPods/cocoapods-stats.git remote: https://github.com/CocoaPods/cocoapods-stats.git
revision: ff4a97cfdf8fbe49c6dd33b595c8486749e631b9 revision: ff4a97cfdf8fbe49c6dd33b595c8486749e631b9
...@@ -112,10 +121,19 @@ GEM ...@@ -112,10 +121,19 @@ GEM
colored (1.2) colored (1.2)
crack (0.4.2) crack (0.4.2)
safe_yaml (~> 1.0.0) safe_yaml (~> 1.0.0)
credentials_manager (0.7.4)
colored
highline (>= 1.7.1)
security
diffy (3.0.7) diffy (3.0.7)
escape (0.0.4) escape (0.0.4)
faraday (0.9.1)
multipart-post (>= 1.2, < 3)
faraday_middleware (0.10.0)
faraday (>= 0.7.4, < 0.10)
ffi (1.9.6) ffi (1.9.6)
fuzzy_match (2.0.4) fuzzy_match (2.0.4)
highline (1.7.3)
i18n (0.7.0) i18n (0.7.0)
inch (0.5.10) inch (0.5.10)
pry pry
...@@ -137,11 +155,14 @@ GEM ...@@ -137,11 +155,14 @@ GEM
metaclass (~> 0.0.1) metaclass (~> 0.0.1)
mocha-on-bacon (0.2.2) mocha-on-bacon (0.2.2)
mocha (>= 0.13.0) mocha (>= 0.13.0)
multi_xml (0.5.5)
multipart-post (2.0.0)
nap (0.8.0) nap (0.8.0)
netrc (0.7.8) netrc (0.7.8)
notify (0.5.2) notify (0.5.2)
parser (2.2.0.3) parser (2.2.0.3)
ast (>= 1.1, < 3.0) ast (>= 1.1, < 3.0)
plist (3.1.0)
powerpack (0.1.0) powerpack (0.1.0)
prettybacon (0.0.2) prettybacon (0.0.2)
bacon (~> 1.2) bacon (~> 1.2)
...@@ -165,7 +186,14 @@ GEM ...@@ -165,7 +186,14 @@ GEM
ruby-prof (0.15.2) ruby-prof (0.15.2)
ruby-progressbar (1.7.1) ruby-progressbar (1.7.1)
safe_yaml (1.0.4) safe_yaml (1.0.4)
security (0.1.3)
slop (3.6.0) slop (3.6.0)
spaceship (0.3.4)
credentials_manager (>= 0.5.0)
faraday (~> 0.9)
faraday_middleware (~> 0.9)
multi_xml (~> 0.5)
plist (~> 3.1)
sparkr (0.4.1) sparkr (0.4.1)
term-ansicolor (1.3.0) term-ansicolor (1.3.0)
tins (~> 1.0) tins (~> 1.0)
...@@ -176,6 +204,9 @@ GEM ...@@ -176,6 +204,9 @@ GEM
webmock (1.20.4) webmock (1.20.4)
addressable (>= 2.3.6) addressable (>= 2.3.6)
crack (>= 0.3.2) crack (>= 0.3.2)
xcode-install (0.9.3)
claide (~> 0.9.1)
spaceship (~> 0.3.4)
yard (0.8.7.6) yard (0.8.7.6)
PLATFORMS PLATFORMS
...@@ -192,6 +223,7 @@ DEPENDENCIES ...@@ -192,6 +223,7 @@ DEPENDENCIES
cocoapods-dependencies cocoapods-dependencies
cocoapods-downloader! cocoapods-downloader!
cocoapods-plugins! cocoapods-plugins!
cocoapods-regression!
cocoapods-stats! cocoapods-stats!
cocoapods-trunk! cocoapods-trunk!
cocoapods-try! cocoapods-try!
......
...@@ -120,6 +120,14 @@ begin ...@@ -120,6 +120,14 @@ begin
sh 'bundle exec bacon spec/integration.rb' sh 'bundle exec bacon spec/integration.rb'
end end
desc 'Run the regression suite'
task :regression do
require 'cocoapods-regression'
CocoaPods::Regression.apps.each do |app|
CocoaPods::Regression.test!(app, 'bin/pod')
end
end
# Default task # Default task
#--------------------------------------# #--------------------------------------#
# #
...@@ -139,6 +147,11 @@ begin ...@@ -139,6 +147,11 @@ begin
title 'Running examples' title 'Running examples'
Rake::Task['examples:build'].invoke Rake::Task['examples:build'].invoke
if true || ENV['TRAVIS_PULL_REQUEST'] == 'false'
title 'Running regression tests'
Rake::Task['spec:regression'].invoke
end
title 'Running RuboCop' title 'Running RuboCop'
Rake::Task['rubocop'].invoke Rake::Task['rubocop'].invoke
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment