Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bundle test apps with dependencies before running tests

Change-Id: I612ad7dd1bfa3d6f9235d8916043e04fa2d23afa
  • Loading branch information...
commit 3e92935968f5fbbf330ff0d547164c24e8a69e48 1 parent f7cfcb5
Jennifer Hickey authored
Showing with 22 additions and 2 deletions.
  1. +6 −2 cfruntime-tests/Rakefile
  2. +16 −0 cfruntime-tests/spec/assets/Rakefile
View
8 cfruntime-tests/Rakefile
@@ -2,7 +2,7 @@ require 'rake'
require 'ci/reporter/rake/rspec'
desc "Run specs"
-task "spec" => ["test:spec"]
+task "spec" => ["test:package","test:spec"]
desc "Run specs using RCov"
task "spec:rcov" => ["test:spec:rcov"]
@@ -18,8 +18,12 @@ namespace "test" do
task "spec:rcov" do |t|
sh("cd spec && rake spec:rcov")
end
+
+ task "package" do |t|
+ sh("cd spec/assets && rake package && cd ../../")
+ end
end
namespace :ci do
task "spec" => ["ci:setup:rspec", "^spec"]
-end
+end
View
16 cfruntime-tests/spec/assets/Rakefile
@@ -0,0 +1,16 @@
+require 'rake'
+
+desc "Package test apps"
+task "package" => ["bundler:package"]
+
+namespace "bundler" do
+ task "package" do
+ Dir['*/'].map { |asset|
+ puts "Packaging #{asset}"
+ Dir.chdir(asset) do
+ sh("rm -rf vendor")
+ sh("bundle install && bundle package")
+ end
+ }
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.