Skip to content

Commit

Permalink
Added basic test configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
knowshan committed Apr 18, 2013
1 parent 3832983 commit b2295de
Show file tree
Hide file tree
Showing 8 changed files with 99 additions and 16 deletions.
7 changes: 7 additions & 0 deletions .fixtures.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
fixtures
repositories:
apache: "git://github.com/puppetlabs/puppetlabs-apache.git"
create_resources: "git://github.com/puppetlabs/puppetlabs-create_resources.git"
stdlib: "git://github.com/puppetlabs/puppetlabs-stdlib.git"
symlinks:
phppgadmin: "#{source_dir}"
7 changes: 7 additions & 0 deletions .gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source :rubygems

puppetversion = ENV['PUPPET_VERSION']
gem 'puppet', puppetversion, :require => false
gem 'puppet-lint'
gem 'rspec-puppet'
gem 'puppetlabs_spec_helper', '>= 0.1.0'
40 changes: 40 additions & 0 deletions .gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
GEM
remote: http://rubygems.org/
specs:
diff-lcs (1.2.3)
facter (1.7.0)
hiera (1.2.0)
json_pure
json_pure (1.7.7)
metaclass (0.0.1)
mocha (0.13.3)
metaclass (~> 0.0.1)
puppet (3.1.1)
facter (~> 1.6)
hiera (~> 1.0)
puppet-lint (0.3.2)
puppetlabs_spec_helper (0.4.1)
mocha (>= 0.10.5)
rake
rspec (>= 2.9.0)
rspec-puppet (>= 0.1.1)
rake (10.0.4)
rspec (2.13.0)
rspec-core (~> 2.13.0)
rspec-expectations (~> 2.13.0)
rspec-mocks (~> 2.13.0)
rspec-core (2.13.1)
rspec-expectations (2.13.0)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.13.1)
rspec-puppet (0.1.6)
rspec

PLATFORMS
ruby

DEPENDENCIES
puppet
puppet-lint
puppetlabs_spec_helper (>= 0.1.0)
rspec-puppet
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: ruby
rvm:
- 1.8.7
- 1.9.3
script:
- "rake spec SPEC_OPTS='--format documentation'"
env:
- PUPPET_VERSION="~> 2.7.0"
- PUPPET_VERSION="~> 3.1.0"
matrix:
exclude:
- rvm: 1.9.3
env: PUPPET_GEM_VERSION="~> 2.7.0"
gemfile: .gemfile
5 changes: 5 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@ Support
-------

Please log tickets and issues at our [Projects site](https://github.com/knowshan/puppet-phppgadmin)

Build Status
------------
"!https://travis-ci.org/[knowshan]/[phppgadmin].png!":https://travis-ci.org/[knowshan]/[phppgadmin]

21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
puppet-phppgadmin

This is the phppgadmin Puppet module.

License
-------


Contact
-------


Support
-------

Please log tickets and issues at our [Projects site](https://github.com/knowshan/puppet-phppgadmin)

Build Status
------------
[![Build Status](https://travis-ci.org/[knowshan]/[phppgadmin].png)](https://travis-ci.org/[knowshan]/[phppgadmin])

3 changes: 3 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
require 'rubygems'
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-lint'
18 changes: 2 additions & 16 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
dir = File.expand_path(File.dirname(__FILE__))
$LOAD_PATH.unshift File.join(dir, 'lib')
require 'rubygems'
require 'puppetlabs_spec_helper/module_spec_helper'

require 'mocha'
require 'puppet'
require 'rspec'
require 'spec/autorun'

Spec::Runner.configure do |config|
config.mock_with :mocha
end

# We need this because the RAL uses 'should' as a method. This
# allows us the same behaviour but with a different method name.
class Object
alias :must :should
end

0 comments on commit b2295de

Please sign in to comment.