Commit 17ce6461 authored by Loic Dachary's avatar Loic Dachary

remove rspec-system dependencies from Gemfile

rspec-system will fail to install on jenkins slaves. It does not matter
anyway since it is not going to be used for unit tests. Create a
Gemfile-rspec-system to be used when running integration tests. Although
it would be convenient to be able to

   BUNDLE_GEMFILE=Gemfile-rspec-system bundle exec rake spec:system

it will fail because the environment variable won't be propagated where
it should.

   .rspec_system/vagrant_projects/x64/Gemfile-rspec-system not found

The README.md file is updated to simply mv to Gemfile which is good
enough for the environment running the integration tests.

A bug was filed against openstack-ci to resolve this installation
problem but it is unclear if and how it could be fixed
https://bugs.launchpad.net/openstack-ci/+bug/1290710

Change-Id: I0bff624892837536419bdbdd6651b009600fe9c6
Signed-off-by: default avatarLoic Dachary <loic@dachary.org>
parent 13522e16
......@@ -4,8 +4,6 @@ source 'https://rubygems.org'
group :development, :test do
gem 'puppetlabs_spec_helper', :require => false
gem 'puppet-lint', '~> 0.3.2'
gem 'rspec-system', :git => 'https://git.gitorious.org/rspec-system/rspec-system.git', :branch => 'master'
gem 'rspec-system-puppet', '= 2.2.1'
end
if puppetversion = ENV['PUPPET_GEM_VERSION']
......
# vim:ft=ruby
source 'https://rubygems.org'
group :development, :test do
gem 'puppetlabs_spec_helper', :require => false
gem 'puppet-lint', '~> 0.3.2'
gem 'rspec-system', :git => 'https://git.gitorious.org/rspec-system/rspec-system.git', :branch => 'master'
gem 'rspec-system-puppet', '= 2.2.1'
end
if puppetversion = ENV['PUPPET_GEM_VERSION']
gem 'puppet', puppetversion, :require => false
else
gem 'puppet', :require => false
end
......@@ -47,8 +47,6 @@ Development
git clone https://github.com/stackforge/puppet-ceph.git
cd puppet-ceph
# nokogiri dependencies
sudo apt-get install ruby-dev libxml2-dev libxslt-dev
sudo gem install bundler
bundle install
......@@ -75,7 +73,9 @@ and tests are in spec/system. It runs virtual machines and requires
4GB of free memory and 10GB of free disk space.
* [Install Vagrant and Virtualbox](http://docs-v1.vagrantup.com/v1/docs/getting-started/)
* # nokogiri dependencies
sudo apt-get install ruby-dev libxml2-dev libxslt-dev
* mv Gemfile-rspec-system Gemfile # because of https://bugs.launchpad.net/openstack-ci/+bug/1290710
* BUNDLE_PATH=/tmp/vendor bundle install
* BUNDLE_PATH=/tmp/vendor bundle exec rake lint
* BUNDLE_PATH=/tmp/vendor bundle exec rake spec
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment