forked from puppetlabs/puppetlabs-apt
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Branan Purvine-Riley
committed
May 8, 2012
1 parent
9538d23
commit 05fba43
Showing
5 changed files
with
47 additions
and
9 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
language: ruby | ||
rvm: | ||
- 1.8.7 | ||
before_script: | ||
- "git clone git://github.com/puppetlabs/puppetlabs-stdlib.git spec/fixtures/modules/stdlib" | ||
after_script: | ||
script: "rake spec" | ||
branches: | ||
only: | ||
- master | ||
env: | ||
- PUPPET_VERSION=2.7.13 | ||
- PUPPET_VERSION=2.7.6 | ||
- PUPPET_VERSION=2.6.9 | ||
notifications: | ||
email: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
source :rubygems | ||
|
||
puppetversion = ENV.key?('PUPPET_VERSION') ? "= #{ENV['PUPPET_VERSION']}" : ['>= 2.7'] | ||
|
||
gem 'puppet', puppetversion | ||
|
||
group :test do | ||
gem 'rake', '>= 0.9.0' | ||
gem 'rspec', '>= 2.8.0' | ||
gem 'rspec-puppet', '>= 0.1.1' | ||
gem 'mocha', '>= 0.11.0' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,29 @@ | ||
require 'rake' | ||
require 'puppet-lint/tasks/puppet-lint' | ||
require 'rspec/core/rake_task' | ||
|
||
task :default => [:spec] | ||
|
||
desc "Run all module spec tests (Requires rspec-puppet gem)" | ||
task :spec do | ||
system("rspec spec/**/*_spec.rb") | ||
RSpec::Core::RakeTask.new(:spec) do |t| | ||
t.rspec_opts = ['--color'] | ||
t.pattern = 'spec/{classes,defines,unit}/**/*_spec.rb' | ||
end | ||
|
||
desc "Build package" | ||
desc "Build puppet module package" | ||
task :build do | ||
system("puppet-module build") | ||
# This will be deprecated once puppet-module is a face. | ||
begin | ||
Gem::Specification.find_by_name('puppet-module') | ||
rescue Gem::LoadError, NoMethodError | ||
require 'puppet/face' | ||
pmod = Puppet::Face['module', :current] | ||
pmod.build('./') | ||
end | ||
end | ||
|
||
desc "Check puppet manifests with puppet-lint" | ||
task :lint do | ||
# This requires pull request: https://github.com/rodjek/puppet-lint/pull/81 | ||
system("puppet-lint manifests") | ||
system("puppet-lint tests") | ||
end |
Submodule stdlib
deleted from
a70b09