summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorJohn Keiser <jkeiser@opscode.com>2014-05-27 14:42:51 -0700
committerJohn Keiser <jkeiser@opscode.com>2014-05-27 14:42:51 -0700
commit8632d76b1ee03ccdf258bb6b23a0dacc3e4ada46 (patch)
treed590712599a17dc08d575ff6cceb3f10b1e8ac19 /Rakefile
parent7c78d743d7867b59912da2edc30414744a4101f5 (diff)
downloadchef-zero-8632d76b1ee03ccdf258bb6b23a0dacc3e4ada46.tar.gz
Run chef specs against chef-zero in travis on each checkin
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 3eeae54..099a270 100644
--- a/Rakefile
+++ b/Rakefile
@@ -6,3 +6,13 @@ require 'chef_zero/version'
task :spec do
require File.expand_path('spec/run')
end
+
+task :chef_spec do
+ gem_path = Bundler.environment.specs['chef'].first.full_gem_path
+ system("cd #{gem_path} && rspec spec/integration")
+end
+
+task :berkshelf_spec do
+ gem_path = Bundler.environment.specs['berkshelf'].first.full_gem_path
+ system("cd #{gem_path} && thor spec:ci")
+end