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:
parent
2a9a994aa4
commit
3d37e8c52f
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
|
||||
|
@ -8,6 +8,7 @@ sudo apt-get -y install build-essential liblzma-dev zlib1g-dev
|
||||
chefdk=chefdk_0.4.0-1_amd64.deb
|
||||
wget -nv -t 3 https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/$chefdk
|
||||
sudo dpkg -i $chefdk
|
||||
rm $chefdk
|
||||
|
||||
## workaround to fix redhat fauxhai permission issue (can be removed with fauxhai > 2.3 in chefdk)
|
||||
sudo chef exec ruby -e "require 'fauxhai'; Fauxhai.mock(platform:'redhat', version:'7.1')"
|
||||
|
Loading…
Reference in New Issue
Block a user