From 1dab81ced0888087619073368ed71be97d075788 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 8 Jun 2015 13:48:30 -0300 Subject: [PATCH] ci: install stuff needed for tests --- Rakefile.ci | 1 + cookbooks/ci/files/default/contrib.list | 2 ++ cookbooks/ci/recipes/default.rb | 2 +- cookbooks/ci/recipes/spb.rb | 15 +++++++++++++++ 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 cookbooks/ci/files/default/contrib.list create mode 100644 cookbooks/ci/recipes/spb.rb 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