CI TEST - based upon repo integration task

This uses the repo integration task.  It also take advantage of the
repo Berksfil REPO_DEV support to pull in the current patch.

Change-Id: I5a0fe1b938f113a922b4a8ea1de9756c47f06dcd
This commit is contained in:
Mark Vanderwiel
2015-06-05 16:10:18 -05:00
parent 2a9a994aa4
commit 3d37e8c52f
2 changed files with 16 additions and 0 deletions

View File

@@ -24,3 +24,18 @@ task :clean do
'Berksfile.lock'
]
end
desc "All-in-One Neutron build Infra"
task :integration do
# Use the berksfile REPO_DEV support to make use of the existing patch clone.
# Make a sym link from workspace/gate-cookbook-openstack-common-chef-rake-integration
# to workspace/cookbook-openstack-common
patch_dir = Dir.pwd
patch_dir_berks = ENV['ZUUL_PROJECT'].split('/')[1]
sh %(ln -s #{patch_dir} ../#{patch_dir_berks})
sh %(git clone --depth 1 git://github.com/stackforge/openstack-chef-repo.git ../openstack-chef-repo)
Dir.chdir('../openstack-chef-repo') do
sh %(REPO_DEV=ON chef exec rake integration)
end
end