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:
15
Rakefile
15
Rakefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user