diff --git a/Rakefile.ci b/Rakefile.ci index 667de00..5fd9896 100644 --- a/Rakefile.ci +++ b/Rakefile.ci @@ -1,3 +1,4 @@ ENV['CHAKE_NODES'] = 'nodes-ci.yaml' ENV['CHAKE_RSYNC_OPTIONS'] = '--exclude .vagrant/ --exclude docs/_build' +ENV['CHAKE_TMPDIR'] = 'tmp/chake.ci' require 'chake' diff --git a/cookbooks/ci/files/default/contrib.list b/cookbooks/ci/files/default/contrib.list new file mode 100644 index 0000000..f99afa4 --- /dev/null +++ b/cookbooks/ci/files/default/contrib.list @@ -0,0 +1,2 @@ +deb http://ftp.br.debian.org/debian/ jessie contrib +deb-src http://ftp.br.debian.org/debian/ jessie contrib diff --git a/cookbooks/ci/recipes/default.rb b/cookbooks/ci/recipes/default.rb index d8f773c..7d40e7d 100644 --- a/cookbooks/ci/recipes/default.rb +++ b/cookbooks/ci/recipes/default.rb @@ -1 +1 @@ -# nothing yet +include_recipe 'ci::spb' diff --git a/cookbooks/ci/recipes/spb.rb b/cookbooks/ci/recipes/spb.rb new file mode 100644 index 0000000..bfbcd58 --- /dev/null +++ b/cookbooks/ci/recipes/spb.rb @@ -0,0 +1,15 @@ +cookbook_file '/etc/apt/sources.list.d/contrib.list' do + notifies :run, 'execute[apt-update]', :immediately +end + +execute 'apt-update' do + command 'apt-get update' + action :nothing +end +package 'virtualbox' + +package 'vagrant' +package 'rake' + +# FIXME not in the archive yet +# package 'chake' -- libgit2 0.21.2