Created recipe to install reqs for CI

This commit is contained in:
Mike Scherbakov 2012-05-15 16:55:53 +04:00
parent ba59964855
commit fde3e78286
5 changed files with 26 additions and 17 deletions

8
requirements.txt Executable file → Normal file
View File

@ -1,6 +1,2 @@
Django==1.4
django-piston==0.2.3
django-celery-with-redis==2.5
jsonfield==0.9
django-nose==1.0
simplejson==2.5.2
# Provide requirements to vagrant/cookbooks/nailgun/recipes/deps.rb
# To install it, see scripts/ci/solo.rb

4
scripts/ci/solo.json Normal file
View File

@ -0,0 +1,4 @@
{
"recipes": [ "nailgun::deps" ]
}

5
scripts/ci/solo.rb Normal file
View File

@ -0,0 +1,5 @@
# To run chef-solo from this folder use the following command:
# sudo chef-solo -l debug -c solo.rb -j solo.json
file_cache_path "/tmp/chef"
cookbook_path File.expand_path(File.join(File.dirname(__FILE__), '../../vagrant/cookbooks'))

View File

@ -0,0 +1,14 @@
{ 'django-piston' => '0.2.3',
'django-celery' => '2.5.5',
'redis' => '2.4.12',
'jsonfield' => '0.9',
'django-nose' => '1.0',
'simplejson' => '2.5.2'
}.each do |package, version|
python_pip package do
version version
action :install
end
end

View File

@ -1,16 +1,6 @@
include_recipe 'django'
{ 'django-piston' => '0.2.3',
'django-celery' => '2.5.5',
'redis' => '2.4.12',
'jsonfield' => '0.9'
}.each do |package, version|
python_pip package do
version version
action :install
end
end
include_recipe 'nailgun::deps'
execute 'Preseed Nailgun database' do
command 'python manage.py loaddata nailgun/fixtures/default_env.json'