Skip to content

Commit 48e75b1

Browse files
sheenaajaydavejrt
authored andcommitted
(CLOUD-1978) pdk changes for k8 module (#148)
1 parent b9e4470 commit 48e75b1

File tree

13 files changed

+409
-93
lines changed

13 files changed

+409
-93
lines changed

.gitignore

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
1-
Gemfile.lock
2-
/spec/fixtures
3-
coverage/
4-
.bundle/
5-
vendor/
6-
tooling/*.yaml
7-
log/
8-
.vagrant/
9-
1+
.git/
2+
.*.sw[op]
3+
.metadata
4+
.yardoc
5+
.yardwarns
6+
*.iml
7+
/.bundle/
8+
/.idea/
9+
/.vagrant/
10+
/coverage/
11+
/bin/
12+
/doc/
13+
/Gemfile.local
14+
/Gemfile.lock
15+
/junit/
16+
/log/
17+
/pkg/
18+
/spec/fixtures/manifests/
19+
/spec/fixtures/modules/
20+
/tmp/
21+
/vendor/
22+
/convert_report.txt
23+
/update_report.txt
24+
.DS_Store

.pdkignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.git/
2+
.*.sw[op]
3+
.metadata
4+
.yardoc
5+
.yardwarns
6+
*.iml
7+
/.bundle/
8+
/.idea/
9+
/.vagrant/
10+
/coverage/
11+
/bin/
12+
/doc/
13+
/Gemfile.local
14+
/Gemfile.lock
15+
/junit/
16+
/log/
17+
/pkg/
18+
/spec/fixtures/manifests/
19+
/spec/fixtures/modules/
20+
/tmp/
21+
/vendor/
22+
/convert_report.txt
23+
/update_report.txt
24+
.DS_Store

.rspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--color
2+
--format documentation

.rubocop.yml

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,32 @@
11
---
2-
require:
3-
- rubocop-rspec
4-
- rubocop-i18n
2+
require: rubocop-rspec
53
AllCops:
4+
DisplayCopNames: true
65
TargetRubyVersion: '2.2'
76
Include:
8-
- "./**/*.rb"
7+
- "./**/*.rb"
98
Exclude:
109
- bin/*
1110
- ".vendor/**/*"
12-
- Gemfile
13-
- Rakefile
11+
- "**/Gemfile"
12+
- "**/Rakefile"
1413
- pkg/**/*
1514
- spec/fixtures/**/*
1615
- vendor/**/*
16+
- "**/Puppetfile"
17+
- "**/Vagrantfile"
18+
- "**/Guardfile"
19+
- tooling/kube_tool/*
20+
- tooling/*
21+
- spec/defines/*
22+
- spec/classes/*
23+
- spec/*
24+
- spec/acceptance/*
25+
- rakelib/*
26+
inherit_from: ".rubocop_todo.yml"
1727
Metrics/LineLength:
1828
Description: People have wide screens, use them.
1929
Max: 200
20-
Enabled: false
2130
RSpec/BeforeAfterAll:
2231
Description: Beware of using after(:all) as it may cause state to leak between tests.
2332
A necessary evil in acceptance testing.
@@ -46,7 +55,6 @@ Style/FormatStringToken:
4655
Style/Lambda:
4756
Description: Prefer the keyword for easier discoverability.
4857
EnforcedStyle: literal
49-
Enabled: true
5058
Style/RegexpLiteral:
5159
Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168
5260
EnforcedStyle: percent_r
@@ -62,18 +70,28 @@ Style/TrailingCommaInArguments:
6270
Style/SymbolArray:
6371
Description: Using percent style obscures symbolic intent of array's contents.
6472
EnforcedStyle: brackets
73+
RSpec/MessageSpies:
74+
EnforcedStyle: receive
75+
Style/Documentation:
76+
Exclude:
77+
- lib/puppet/parser/functions/**/*
78+
- spec/**/*
79+
Style/WordArray:
80+
EnforcedStyle: brackets
6581
Style/CollectionMethods:
6682
Enabled: true
6783
Style/MethodCalledOnDoEndBlock:
6884
Enabled: true
6985
Style/StringMethods:
7086
Enabled: true
87+
Layout/EndOfLine:
88+
Enabled: false
89+
Layout/IndentHeredoc:
90+
Enabled: false
7191
Metrics/AbcSize:
7292
Enabled: false
7393
Metrics/BlockLength:
7494
Enabled: false
75-
Metrics/LineLength:
76-
Enabled: false
7795
Metrics/ClassLength:
7896
Enabled: false
7997
Metrics/CyclomaticComplexity:
@@ -88,13 +106,17 @@ Metrics/PerceivedComplexity:
88106
Enabled: false
89107
RSpec/DescribeClass:
90108
Enabled: false
109+
RSpec/ExampleLength:
110+
Enabled: false
91111
RSpec/MessageExpectation:
92112
Enabled: false
113+
RSpec/MultipleExpectations:
114+
Enabled: false
115+
RSpec/NestedGroups:
116+
Enabled: false
93117
Style/AsciiComments:
94118
Enabled: false
95119
Style/IfUnlessModifier:
96120
Enabled: false
97121
Style/SymbolProc:
98122
Enabled: false
99-
Style/HashSyntax:
100-
UseHashRocketsWithSymbolValues: true

.rubocop_todo.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Style/HashSyntax:
2+
UseHashRocketsWithSymbolValues: true

.sync.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
.travis.yml:
3+
bundler_args: ' '
4+
branches:
5+
- release
6+
7+
Gemfile:
8+
required:
9+
':development':
10+
- gem: 'nokogiri'
11+
version: '1.8.4'
12+
- gem: 'net-telnet'
13+
- gem: 'facter'
14+
version: '>= 1.7.0'
15+
- gem: 'rspec-puppet'
16+
- gem: "rspec-retry"
17+
- gem: 'thor'
18+
- gem: 'semantic_puppet'
19+
- gem: 'simplecov'
20+
- gem: 'simplecov-json'
21+
- gem: 'simplecov-rcov'
22+
- gem: 'beaker-puppet_install_helper'
23+
- gem: 'beaker-rspec'
24+
from_env: BEAKER_RSPEC_VERSION
25+
- gem: 'parallel_tests'
26+
- gem: "beaker"
27+
version: '~> 2.0'
28+
from_env: BEAKER_VERSION
29+
- gem: 'rspec_junit_formatter'
30+
- gem: "puppet-lint-i18n"
31+
- gem: "puppet_pot_generator"
32+
- gem: 'rubocop-i18n'
33+
- gem: 'gettext-setup'
34+
- gem: 'rubocop-rspec'
35+
36+
Rakefile:
37+
requires:
38+
- puppet-lint/tasks/puppet-lint
39+
- puppetlabs_spec_helper/rake_tasks
40+
- metadata-json-lint/rake_task
41+
- rspec_junit_formatter
42+
- puppet_pot_generator/rake_tasks
43+
44+
.rubocop.yml:
45+
include_todos:
46+
inherit_from: '.rubocop_todo.yml'

.travis.yml

Lines changed: 39 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,45 @@
11
---
2-
language: ruby
3-
bundler_args: --without development system_tests
4-
before_install: rm Gemfile.lock || true
52
sudo: false
6-
rvm:
7-
- 2.3.3
3+
dist: trusty
4+
language: ruby
5+
cache: bundler
6+
before_install:
7+
- bundle -v
8+
- rm -f Gemfile.lock
9+
- gem update --system
10+
- gem --version
11+
- bundle -v
812
script:
9-
- bundle exec rake test
10-
- bundle exec rubocop lib
11-
- bundle exec puppet-lint --no-autoloader_layout-check manifests
13+
- 'bundle exec rake $CHECK'
14+
bundler_args:
15+
rvm:
16+
- 2.4.4
1217
env:
13-
- PUPPET_GEM_VERSION="~> 4.0"
14-
- PUPPET_GEM_VERSION="~> 5.0"
18+
global:
19+
- BEAKER_PUPPET_COLLECTION=puppet5 PUPPET_GEM_VERSION="~> 5.0"
1520
matrix:
1621
fast_finish: true
22+
include:
23+
-
24+
env: CHECK="syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop"
25+
-
26+
env: CHECK=parallel_spec
27+
-
28+
env: PUPPET_GEM_VERSION="~> 4.0" CHECK=parallel_spec
29+
rvm: 2.3.3
30+
branches:
31+
only:
32+
- master
33+
- /^v\d/
34+
- release
35+
notifications:
36+
email: false
37+
deploy:
38+
provider: puppetforge
39+
user: puppet
40+
password:
41+
secure: ""
42+
on:
43+
tags: true
44+
all_branches: true
45+
condition: "$DEPLOY_TO_FORGE = yes"

.yardopts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--markup markdown

0 commit comments

Comments
 (0)