Skip to content

Commit e38c57c

Browse files
authored
Merge pull request #101 from github/kpaulisse-puppet-4-10
Add puppet 4.10 to the CI rotation and update gems
2 parents af38f33 + 1f987a6 commit e38c57c

37 files changed

+35
-17
lines changed

.rubocop.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ Metrics/AbcSize:
2222
Max: 100
2323
Severity: warning
2424

25+
Metrics/BlockLength:
26+
Enabled: false
27+
2528
Metrics/ClassLength:
2629
Max: 500
2730
Severity: warning
@@ -40,12 +43,33 @@ Metrics/PerceivedComplexity:
4043

4144
# Indentation
4245
CaseIndentation:
43-
IndentWhenRelativeTo: end
4446
IndentOneStep: false
4547

4648
Lint/EndAlignment:
47-
AlignWith: variable
49+
EnforcedStyleAlignWith: variable
4850

4951
# To let us use a '-' in the gem name
5052
Style/FileName:
5153
Enabled: false
54+
55+
# To fix later
56+
Style/PercentLiteralDelimiters:
57+
Enabled: false
58+
Style/VariableNumber:
59+
Enabled: false
60+
Security/YAMLLoad:
61+
Enabled: false
62+
Lint/AmbiguousBlockAssociation:
63+
Enabled: false
64+
Lint/UnifiedInteger:
65+
Enabled: false
66+
Style/GuardClause:
67+
Enabled: false
68+
Style/EmptyMethod:
69+
Enabled: false
70+
Style/SymbolArray:
71+
Enabled: false
72+
Style/IndentHeredoc:
73+
Enabled: false
74+
Style/ExtraSpacing:
75+
Enabled: false

octocatalog-diff.gemspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require_relative 'lib/octocatalog-diff/version'
22

3-
DEFAULT_PUPPET_VERSION = '4.5.3'.freeze
3+
DEFAULT_PUPPET_VERSION = '4.10.0'.freeze
44

55
Gem::Specification.new do |s|
66
s.required_ruby_version = '>= 2.0.0'
@@ -26,19 +26,19 @@ EOF
2626
s.add_runtime_dependency 'diffy', '>= 3.1.0'
2727
s.add_runtime_dependency 'httparty', '>= 0.11.0'
2828
s.add_runtime_dependency 'hashdiff', '>= 0.3.0'
29-
s.add_runtime_dependency 'parallel', '>= 1.9.0'
29+
s.add_runtime_dependency 'parallel', '>= 1.11.1'
3030
s.add_runtime_dependency 'rugged', '>= 0.25.0b2'
3131

3232
s.add_development_dependency 'rspec', '~> 3.4.0'
3333
s.add_development_dependency 'rake', '11.2.2'
3434
s.add_development_dependency 'parallel_tests', '2.7.1'
3535
s.add_development_dependency 'rspec-retry', '0.5.0'
3636

37-
s.add_development_dependency 'rubocop', '~> 0.35'
37+
s.add_development_dependency 'rubocop', '= 0.48.1'
3838

3939
s.add_development_dependency 'puppetdb-terminus', '3.2.4'
4040

41-
s.add_development_dependency 'simplecov'
41+
s.add_development_dependency 'simplecov', '>= 0.14.1'
4242
s.add_development_dependency 'simplecov-json'
4343

4444
if ENV['PUPPET_VERSION']

script/cibuild

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,16 @@
66
# with one or more Puppet versions, with PUPPET_VERSIONS set to a space-separated list
77
# of versions to test.
88

9-
[ -z "$PUPPET_VERSIONS" ] && export PUPPET_VERSIONS='3.8.7 4.5.3'
9+
[ -z "$PUPPET_VERSIONS" ] && export PUPPET_VERSIONS='3.8.7 4.5.3 4.10.0'
1010
[ -z "$RUBOCOP_TEST" ] && export RUBOCOP_TEST='true'
1111
[ -z "$RSPEC_TEST" ] && export RSPEC_TEST='true'
1212

13-
# FIXME: Needed only for Janky. Remove for travis.
14-
if env | grep ^JANKY_ >/dev/null 2>&1; then
15-
export PATH=/usr/share/rbenv/shims:$PATH
16-
export RBENV_VERSION=2.1.2-github
17-
fi
18-
1913
echo 'Starting script/cibuild'
2014

2115
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
2216

2317
# Create a temporary file to capture output of various steps.
24-
export OUTPUT_FILE=$(mktemp)
18+
export OUTPUT_FILE="$(mktemp)"
2519
function cleanup() {
2620
rm -rf "$OUTPUT_FILE"
2721
}
@@ -79,12 +73,12 @@ if [ "$RSPEC_TEST" = "true" ]; then
7973

8074
# Make sure `script/puppet` returns the desired puppet version
8175
pv_test=$( "${DIR}/script/puppet" --version 2>&1 )
82-
if [ $? -eq 0 -a "$pv_test" = "$pv" ]; then
76+
if [ $? -eq 0 ] && [ "$pv_test" = "$pv" ]; then
8377
echo "Confirmed Puppet version = ${pv_test}"
8478
else
8579
echo "Failures:"
8680
echo "- Unable to confirm that Puppet version = ${pv}"
87-
echo $pv_test
81+
echo "$pv_test"
8882
RSPEC_EXITCODE=255
8983
fi
9084

@@ -108,4 +102,4 @@ fi
108102
echo "Finished script/cibuild:"
109103
[ "$RUBOCOP_EXITCODE" -ge 0 ] && echo " - rubocop: exit ${RUBOCOP_EXITCODE}"
110104
[ "$RSPEC_EXITCODE" -ge 0 ] && echo " - rspec: exit ${RSPEC_EXITCODE}"
111-
if [ "$RUBOCOP_EXITCODE" -gt 0 -o "$RSPEC_EXITCODE" -gt 0 ]; then exit 1; else exit 0; fi
105+
if [ "$RUBOCOP_EXITCODE" -gt 0 ] || [ "$RSPEC_EXITCODE" -gt 0 ]; then exit 1; else exit 0; fi

vendor/cache/diff-lcs-1.2.5.gem

-48 KB
Binary file not shown.

vendor/cache/diff-lcs-1.3.gem

45 KB
Binary file not shown.

vendor/cache/diffy-3.1.0.gem

-17 KB
Binary file not shown.

vendor/cache/diffy-3.2.0.gem

17 KB
Binary file not shown.

vendor/cache/fast_gettext-1.1.0.gem

25.5 KB
Binary file not shown.

vendor/cache/gettext-3.2.2.gem

277 KB
Binary file not shown.

vendor/cache/gettext-setup-0.23.gem

15 KB
Binary file not shown.

0 commit comments

Comments
 (0)