Skip to content

Commit

Permalink
Commit meta files in preparation for version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrakowitzer committed Feb 20, 2015
1 parent 0630800 commit 98e7a76
Show file tree
Hide file tree
Showing 7 changed files with 89 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ fixtures:
confluence: "#{source_dir}"
repositories:
deploy: "http://github.com/mkrakowitzer/puppet-deploy"
staging: "https://github.com/nanliu/puppet-staging"
staging: "http://github.com/nanliu/puppet-staging"
stdlib: "http://github.com/puppetlabs/puppetlabs-stdlib.git"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ pkg/
*.project
spec/fixtures/modules
Gemfile.lock
.vagrant
log
27 changes: 21 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,29 @@
---
language: ruby
bundler_args: --without system_tests
script: "bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--format documentation'"
bundler_args: --without development system_tests
before_install: rm Gemfile.lock || true
rvm:
- 1.8.7
- 1.9.3
- 2.0.0
- 2.1.0
script: bundle exec rake test
env:
- PUPPET_VERSION="~> 3.2.0"
- PUPPET_VERSION="~> 3.3.0"
- PUPPET_VERSION="~> 3.4.0"
- PUPPET_VERSION="~> 3.5.0" STRICT_VARIABLES=yes
- PUPPET_VERSION="~> 3.6.0" STRICT_VARIABLES=yes
- PUPPET_VERSION="~> 3.7.0" STRICT_VARIABLES=yes
- PUPPET_VERSION="~> 3.7.0" STRICT_VARIABLES=yes FUTURE_PARSER=yes
matrix:
fast_finish: true
include:
exclude:
- rvm: 1.9.3
env: PUPPET_GEM_VERSION="~> 3.0"
env: PUPPET_VERSION="~> 2.7.0"
- rvm: 2.0.0
env: PUPPET_GEM_VERSION="~> 3.0"
env: PUPPET_VERSION="~> 2.7.0"
- rvm: 2.1.0
env: PUPPET_VERSION="~> 2.7.0"
notifications:
email:
- merritt@krakowitzer.com
14 changes: 8 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@ if ENV.key?('PUPPET_VERSION')
else
puppetversion = ['>= 3.4.2']
end
rspecversion = ENV.key?('RSPEC_VERSION') ? "= #{ENV['RSPEC_VERSION']}" : ['>= 2.14 ', '< 3.0.0']
gem 'rake'
gem 'puppet-lint'
gem 'rspec', rspecversion
gem 'rspec-puppet', "1.0.1"
gem 'rspec'
gem 'rspec-puppet', "~> 2"
gem 'puppetlabs_spec_helper'
gem 'puppet', puppetversion
gem 'puppet-blacksmith'
gem 'beaker'
gem 'pry'
gem 'serverspec', "~> 1.0"
gem 'beaker-rspec', "~> 2.2.4",:require => false
gem 'minitest', "~> 4"
gem 'serverspec'
gem 'beaker-rspec'
gem 'minitest'
gem 'guard-rake'
gem "metadata-json-lint"
gem "rspec-puppet-facts"
4 changes: 4 additions & 0 deletions Guardfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
notification :off
guard 'rake', :task => 'test' do
watch(%r{^manifests\/(.+)\.pp$})
end
61 changes: 46 additions & 15 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,50 @@
require 'rake'
require 'puppetlabs_spec_helper/rake_tasks'
require 'rspec/core/rake_task'
require 'puppet_blacksmith/rake_tasks'

LINT_IGNORES = ['rvm']
require 'puppet/vendor/semantic/lib/semantic'
require 'puppet-lint/tasks/puppet-lint'
require 'puppet-syntax/tasks/puppet-syntax'

# These gems aren't always present, for instance
# on Travis with --without development
begin
if Gem::Specification::find_by_name('puppet-lint')
require 'puppet-lint/tasks/puppet-lint'
PuppetLint.configuration.fail_on_warnings = true,
PuppetLint.configuration.send('disable_80chars')
PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "vendor/**/*.pp", "pkg/**/**/*.pp"]
PuppetLint.configuration.log_format =
'%{path}:%{linenumber}:%{check}:%{KIND}:%{message}'
task :default => [:spec,:syntax,:validate,:lint]
end
rescue Gem::LoadError
require 'puppet_blacksmith/rake_tasks'
rescue LoadError
end

Rake::Task[:lint].clear

PuppetLint.configuration.relative = true
PuppetLint.configuration.send("disable_80chars")
PuppetLint.configuration.log_format = "%{path}:%{linenumber}:%{check}:%{KIND}:%{message}"
PuppetLint.configuration.fail_on_warnings = true

# Forsake support for Puppet 2.6.2 for the benefit of cleaner code.
# http://puppet-lint.com/checks/class_parameter_defaults/
PuppetLint.configuration.send('disable_class_parameter_defaults')
# http://puppet-lint.com/checks/class_inherits_from_params_class/
PuppetLint.configuration.send('disable_class_inherits_from_params_class')

exclude_paths = [
"bundle/**/*",
"pkg/**/*",
"vendor/**/*",
"spec/**/*",
]
PuppetLint.configuration.ignore_paths = exclude_paths
PuppetSyntax.exclude_paths = exclude_paths

desc "Run acceptance tests"
RSpec::Core::RakeTask.new(:acceptance) do |t|
t.pattern = 'spec/acceptance'
end

task :metadata do
sh "metadata-json-lint metadata.json"
end

desc "Run syntax, lint, and spec tests."
task :test => [
:syntax,
:lint,
:spec,
:metadata,
]
15 changes: 7 additions & 8 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mkrakowitzer-confluence",
"version": "1.0.1",
"version": "2.0.0",
"author": "mkrakowitzer",
"summary": "Install atlassian confluence",
"license": "MIT",
Expand All @@ -17,10 +17,6 @@
"name": "mkrakowitzer/deploy",
"version_requirement": ">= 0.0.3"
},
{
"name": "yguenane/repoforge",
"version_requirement": ">= 0.2.0"
},
{
"name": "nanliu/staging",
"version_requirement": ">= 1.0.0"
Expand All @@ -40,19 +36,22 @@
{
"operatingsystem": "RedHat",
"operatingsystemrelease": [
"6"
"6",
"7"
]
},
{
"operatingsystem": "CentOS",
"operatingsystemrelease": [
"6"
"6",
"7"
]
},
{
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"12.04"
"12.04",
"14.04"
]
},
{
Expand Down

0 comments on commit 98e7a76

Please sign in to comment.