Skip to content

Commit 67956ed

Browse files
authored
Merge pull request #8 from kenyon/pdk-update2
pdk update
2 parents d40b9eb + 4ccadff commit 67956ed

7 files changed

Lines changed: 25 additions & 9 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@
2525
.project
2626
.envrc
2727
/inventory.yaml
28+
/spec/fixtures/litmus_inventory.yaml

.gitlab-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ default:
1919
- bundle -v
2020
- bundle install --without system_tests --path vendor/bundle --jobs $(nproc)
2121

22-
syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop-Ruby 2.5.7-Puppet ~> 6:
22+
validate lint check rubocop-Ruby 2.5.7-Puppet ~> 6:
2323
stage: syntax
2424
image: ruby:2.5.7
2525
script:
26-
- bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
26+
- bundle exec rake validate lint check rubocop
2727
variables:
2828
PUPPET_GEM_VERSION: '~> 6'
2929

@@ -35,11 +35,11 @@ parallel_spec-Ruby 2.5.7-Puppet ~> 6:
3535
variables:
3636
PUPPET_GEM_VERSION: '~> 6'
3737

38-
syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop-Ruby 2.7.2-Puppet ~> 7:
38+
validate lint check rubocop-Ruby 2.7.2-Puppet ~> 7:
3939
stage: syntax
4040
image: ruby:2.7.2
4141
script:
42-
- bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
42+
- bundle exec rake validate lint check rubocop
4343
variables:
4444
PUPPET_GEM_VERSION: '~> 7'
4545

.pdkignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
.project
2626
.envrc
2727
/inventory.yaml
28+
/spec/fixtures/litmus_inventory.yaml
2829
/appveyor.yml
30+
/.editorconfig
2931
/.fixtures.yml
3032
/Gemfile
3133
/.gitattributes

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
fast_finish: true
2929
include:
3030
-
31-
env: CHECK="check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop syntax lint metadata_lint"
31+
env: CHECK="validate lint check rubocop"
3232
stage: static
3333
-
3434
env: PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec

appveyor.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
version: 1.1.x.{build}
3+
skip_branch_with_pr: true
34
branches:
45
only:
56
- main
@@ -17,7 +18,7 @@ environment:
1718
matrix:
1819
-
1920
RUBY_VERSION: 25-x64
20-
CHECK: syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
21+
CHECK: validate lint check rubocop
2122
-
2223
PUPPET_GEM_VERSION: ~> 6.0
2324
RUBY_VERSION: 25

metadata.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
"version_requirement": ">= 6.1.0 < 8.0.0"
4444
}
4545
],
46-
"pdk-version": "2.1.0",
47-
"template-url": "pdk-default#2.1.0",
48-
"template-ref": "tags/2.1.0-0-ga675ea5",
46+
"pdk-version": "2.2.0",
47+
"template-url": "pdk-default#2.2.0",
48+
"template-ref": "tags/2.2.0-0-g2381db6",
4949
"tags": [
5050
"bind",
5151
"bind9",

spec/spec_helper.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,18 @@
4747
c.filter_run_excluding(bolt: true) unless ENV['GEM_BOLT']
4848
c.after(:suite) do
4949
end
50+
51+
# Filter backtrace noise
52+
backtrace_exclusion_patterns = [
53+
%r{spec_helper},
54+
%r{gems},
55+
]
56+
57+
if c.respond_to?(:backtrace_exclusion_patterns)
58+
c.backtrace_exclusion_patterns = backtrace_exclusion_patterns
59+
elsif c.respond_to?(:backtrace_clean_patterns)
60+
c.backtrace_clean_patterns = backtrace_exclusion_patterns
61+
end
5062
end
5163

5264
# Ensures that a module is defined

0 commit comments

Comments
 (0)