Skip to content

Commit

Permalink
chore(release): switch to pdk
Browse files Browse the repository at this point in the history
  • Loading branch information
TheKevJames committed Nov 5, 2018
1 parent b0b75f3 commit d4d323f
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 18 deletions.
100 changes: 88 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
# STRICT_VARIABLES: "yes"
# steps:
# - checkout
# - run: gem install --no-ri puppet-lint "puppet:<4.0.0"
# - run: gem install --no-ri --no-rdoc puppet-lint "puppet:<4.0.0"
# - run: puppet-lint manifests/init.pp
# - run: puppet-lint manifests/install.pp
# - run: puppet-lint manifests/compiler.pp
Expand All @@ -43,7 +43,7 @@ jobs:
STRICT_VARIABLES: "yes"
steps:
- checkout
- run: gem install --no-ri puppet-lint "puppet:<5.0.0"
- run: gem install --no-ri --no-rdoc puppet-lint "puppet:<5.0.0"
- run: puppet-lint manifests/init.pp
- run: puppet-lint manifests/install.pp
- run: puppet-lint manifests/compiler.pp
Expand All @@ -62,7 +62,7 @@ jobs:
# steps:
# - checkout
# # https://tickets.puppetlabs.com/browse/PUP-3796
# - run: gem install --no-ri puppet-lint "puppet:<4.0.0" syck
# - run: gem install --no-ri --no-rdoc puppet-lint "puppet:<4.0.0" syck
# - run: sed -i "1s/^/require 'syck'\n/" /usr/local/bundle/gems/puppet-3.8.7/lib/puppet.rb
# - run: puppet-lint manifests/init.pp
# - run: puppet-lint manifests/install.pp
Expand All @@ -81,7 +81,7 @@ jobs:
STRICT_VARIABLES: "yes"
steps:
- checkout
- run: gem install --no-ri puppet-lint "puppet:<5.0.0"
- run: gem install --no-ri --no-rdoc puppet-lint "puppet:<5.0.0"
- run: puppet-lint manifests/init.pp
- run: puppet-lint manifests/install.pp
- run: puppet-lint manifests/compiler.pp
Expand All @@ -99,7 +99,25 @@ jobs:
STRICT_VARIABLES: "yes"
steps:
- checkout
- run: gem install --no-ri puppet-lint "puppet:<6.0.0"
- run: gem install --no-ri --no-rdoc puppet-lint "puppet:<6.0.0"
- run: puppet-lint manifests/init.pp
- run: puppet-lint manifests/install.pp
- run: puppet-lint manifests/compiler.pp
- run: puppet parser validate --noop manifests/init.pp
- run: puppet parser validate --noop manifests/install.pp
- run: puppet parser validate --noop manifests/compiler.pp
- run: puppet module build
- run: puppet module install pkg/thekevjames-homebrew-*.tar.gz
# - run: ./test.sh

build-ruby-2.2.10-puppet-6:
docker:
- image: ruby:2.2.10
environment:
STRICT_VARIABLES: "yes"
steps:
- checkout
- run: gem install --no-ri --no-rdoc puppet-lint "puppet:<7.0.0"
- run: puppet-lint manifests/init.pp
- run: puppet-lint manifests/install.pp
- run: puppet-lint manifests/compiler.pp
Expand All @@ -118,7 +136,7 @@ jobs:
# steps:
# - checkout
# # https://tickets.puppetlabs.com/browse/PUP-3796
# - run: gem install --no-ri puppet-lint "puppet:<4.0.0" syck
# - run: gem install --no-ri --no-rdoc puppet-lint "puppet:<4.0.0" syck
# - run: sed -i "1s/^/require 'syck'\n/" /usr/local/bundle/gems/puppet-3.8.7/lib/puppet.rb
# - run: puppet-lint manifests/init.pp
# - run: puppet-lint manifests/install.pp
Expand All @@ -137,7 +155,7 @@ jobs:
STRICT_VARIABLES: "yes"
steps:
- checkout
- run: gem install --no-ri puppet-lint "puppet:<5.0.0"
- run: gem install --no-ri --no-rdoc puppet-lint "puppet:<5.0.0"
- run: puppet-lint manifests/init.pp
- run: puppet-lint manifests/install.pp
- run: puppet-lint manifests/compiler.pp
Expand All @@ -155,7 +173,25 @@ jobs:
STRICT_VARIABLES: "yes"
steps:
- checkout
- run: gem install --no-ri puppet-lint "puppet:<6.0.0"
- run: gem install --no-ri --no-rdoc puppet-lint "puppet:<6.0.0"
- run: puppet-lint manifests/init.pp
- run: puppet-lint manifests/install.pp
- run: puppet-lint manifests/compiler.pp
- run: puppet parser validate --noop manifests/init.pp
- run: puppet parser validate --noop manifests/install.pp
- run: puppet parser validate --noop manifests/compiler.pp
- run: puppet module build
- run: puppet module install pkg/thekevjames-homebrew-*.tar.gz
# - run: ./test.sh

build-ruby-2.3.7-puppet-6:
docker:
- image: ruby:2.3.7
environment:
STRICT_VARIABLES: "yes"
steps:
- checkout
- run: gem install --no-ri --no-rdoc puppet-lint "puppet:<7.0.0"
- run: puppet-lint manifests/init.pp
- run: puppet-lint manifests/install.pp
- run: puppet-lint manifests/compiler.pp
Expand All @@ -173,7 +209,7 @@ jobs:
STRICT_VARIABLES: "yes"
steps:
- checkout
- run: gem install --no-ri puppet-lint "puppet:<5.0.0"
- run: gem install --no-ri --no-rdoc puppet-lint "puppet:<5.0.0"
- run: puppet-lint manifests/init.pp
- run: puppet-lint manifests/install.pp
- run: puppet-lint manifests/compiler.pp
Expand All @@ -191,7 +227,25 @@ jobs:
STRICT_VARIABLES: "yes"
steps:
- checkout
- run: gem install --no-ri puppet-lint "puppet:<6.0.0"
- run: gem install --no-ri --no-rdoc puppet-lint "puppet:<6.0.0"
- run: puppet-lint manifests/init.pp
- run: puppet-lint manifests/install.pp
- run: puppet-lint manifests/compiler.pp
- run: puppet parser validate --noop manifests/init.pp
- run: puppet parser validate --noop manifests/install.pp
- run: puppet parser validate --noop manifests/compiler.pp
- run: puppet module build
- run: puppet module install pkg/thekevjames-homebrew-*.tar.gz
# - run: ./test.sh

build-ruby-2.4.4-puppet-6:
docker:
- image: ruby:2.4.4
environment:
STRICT_VARIABLES: "yes"
steps:
- checkout
- run: gem install --no-ri --no-rdoc puppet-lint "puppet:<7.0.0"
- run: puppet-lint manifests/init.pp
- run: puppet-lint manifests/install.pp
- run: puppet-lint manifests/compiler.pp
Expand All @@ -209,7 +263,7 @@ jobs:
STRICT_VARIABLES: "yes"
steps:
- checkout
- run: gem install --no-ri puppet-lint "puppet:<5.0.0"
- run: gem install --no-ri --no-rdoc puppet-lint "puppet:<5.0.0"
- run: puppet-lint manifests/init.pp
- run: puppet-lint manifests/install.pp
- run: puppet-lint manifests/compiler.pp
Expand All @@ -227,7 +281,25 @@ jobs:
STRICT_VARIABLES: "yes"
steps:
- checkout
- run: gem install --no-ri puppet-lint "puppet:<6.0.0"
- run: gem install --no-ri --no-rdoc puppet-lint "puppet:<6.0.0"
- run: puppet-lint manifests/init.pp
- run: puppet-lint manifests/install.pp
- run: puppet-lint manifests/compiler.pp
- run: puppet parser validate --noop manifests/init.pp
- run: puppet parser validate --noop manifests/install.pp
- run: puppet parser validate --noop manifests/compiler.pp
- run: puppet module build
- run: puppet module install pkg/thekevjames-homebrew-*.tar.gz
# - run: ./test.sh

build-ruby-2.5.1-puppet-6:
docker:
- image: ruby:2.5.1
environment:
STRICT_VARIABLES: "yes"
steps:
- checkout
- run: gem install --no-ri --no-rdoc puppet-lint "puppet:<7.0.0"
- run: puppet-lint manifests/init.pp
- run: puppet-lint manifests/install.pp
- run: puppet-lint manifests/compiler.pp
Expand All @@ -250,13 +322,17 @@ workflows:
# - build-ruby-2.2.10-puppet-3
- build-ruby-2.2.10-puppet-4
- build-ruby-2.2.10-puppet-5
- build-ruby-2.2.10-puppet-6

# - build-ruby-2.3.7-puppet-3
- build-ruby-2.3.7-puppet-4
- build-ruby-2.3.7-puppet-5
- build-ruby-2.3.7-puppet-6

- build-ruby-2.4.4-puppet-4
- build-ruby-2.4.4-puppet-5
- build-ruby-2.4.4-puppet-6

- build-ruby-2.5.1-puppet-4
- build-ruby-2.5.1-puppet-5
- build-ruby-2.5.1-puppet-6
21 changes: 21 additions & 0 deletions .pdkignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
*.iml
.*.sw[op]
.git/
.metadata
.yardoc
.yardwarns
/.bundle/
/.idea/
/.vagrant/
/bin/
/coverage/
/doc/
/Gemfile.local
/Gemfile.lock
/junit/
/log/
/pkg/
/spec/fixtures/manifests/
/spec/fixtures/modules/
/tmp/
/vendor/
25 changes: 19 additions & 6 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,27 @@
"project_page": "https://github.com/TheKevJames/puppet-homebrew",
"issues_url": "https://github.com/TheKevJames/puppet-homebrew/issues",
"dependencies": [
{"name": "puppetlabs/stdlib", "version_requirement": ">= 4.2.0 < 5.0.0"}
{
"name": "puppetlabs/stdlib",
"version_requirement": ">= 4.2.0 < 5.0.0"
}
],
"data_provider": null,
"operatingsystem_support": [
{ "operatingsystem": "Darwin" }
{
"operatingsystem": "Darwin"
}
],
"requirements": [
{ "name": "ruby", "version_requirement": ">= 1.8.3 < 3.0.0" },
{ "name": "puppet", "version_requirement": ">= 4.0.0 < 6.0.0" }
]
{
"name": "ruby",
"version_requirement": ">= 1.8.3 < 3.0.0"
},
{
"name": "puppet",
"version_requirement": ">= 4.0.0 < 6.0.0"
}
],
"pdk-version": "1.7.1",
"template-url": "file:///opt/puppetlabs/pdk/share/cache/pdk-templates.git",
"template-ref": "1.7.1-0-g810b982"
}

0 comments on commit d4d323f

Please sign in to comment.