Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 91186d7

Browse files
authored
Merge pull request #59 from npwalker/run_travis_on_xenial
(MAINT) Switch travis dist to xenial, PDK update
2 parents 017f4dc + fe588ea commit 91186d7

File tree

11 files changed

+59
-66
lines changed

11 files changed

+59
-66
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@
2222
/convert_report.txt
2323
/update_report.txt
2424
.DS_Store
25+
.project
26+
.envrc
27+
/inventory.yaml

.pdkignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
/convert_report.txt
2323
/update_report.txt
2424
.DS_Store
25+
.project
26+
.envrc
27+
/inventory.yaml
2528
/appveyor.yml
2629
/.fixtures.yml
2730
/Gemfile
@@ -30,8 +33,10 @@
3033
/.gitlab-ci.yml
3134
/.pdkignore
3235
/Rakefile
36+
/rakelib/
3337
/.rspec
3438
/.rubocop.yml
3539
/.travis.yml
3640
/.yardopts
3741
/spec/
42+
/.vscode/

.project

Lines changed: 0 additions & 23 deletions
This file was deleted.

.puppet-lint.rc

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

.rubocop.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
2-
require: rubocop-rspec
2+
require:
3+
- rubocop-rspec
4+
- rubocop-i18n
35
AllCops:
46
DisplayCopNames: true
57
TargetRubyVersion: '2.1'
@@ -19,6 +21,8 @@ AllCops:
1921
Metrics/LineLength:
2022
Description: People have wide screens, use them.
2123
Max: 200
24+
GetText:
25+
Enabled: false
2226
GetText/DecorateString:
2327
Description: We don't want to decorate test output.
2428
Exclude:

.sync.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ appveyor.yml:
33
delete: true
44
.gitlab-ci.yml:
55
delete: true
6+
.project:
7+
delete: true
68

79
.travis.yml:
10+
dist: 'xenial'
811
bundler_args: -----without system_tests
912
docker_sets:
1013
- set: docker/centos-7

.travis.yml

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
---
2-
dist: trusty
2+
dist: xenial
33
language: ruby
44
cache: bundler
55
before_install:
6-
- if [[ $TRAVIS_RUBY_VERSION =~ ^(1.9|2.0|2.1|2.2) ]]; then
7-
gem update --system 2.7.8 && gem install bundler -v '< 2' --no-document;
8-
else
9-
gem update --system && gem install bundler --no-document;
10-
fi
116
- bundle -v
127
- rm -f Gemfile.lock
138
- gem update --system $RUBYGEMS_VERSION
@@ -17,50 +12,53 @@ script:
1712
- 'bundle exec rake $CHECK'
1813
bundler_args:
1914
rvm:
20-
- 2.5.1
21-
env:
22-
global:
23-
- BEAKER_PUPPET_COLLECTION=puppet6 PUPPET_GEM_VERSION="~> 6.0"
15+
- 2.5.3
16+
stages:
17+
- static
18+
- spec
19+
- acceptance
20+
-
21+
if: tag =~ ^v\d
22+
name: deploy
2423
matrix:
2524
fast_finish: true
2625
include:
2726
-
27+
bundler_args: --with system_tests
2828
dist: trusty
2929
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=docker/centos-7 BEAKER_TESTMODE=apply
30-
rvm: 2.5.1
30+
rvm: 2.5.3
3131
script: bundle exec rake beaker
3232
services: docker
33+
stage: acceptance
3334
sudo: required
3435
-
36+
bundler_args: --with system_tests
3537
dist: trusty
3638
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=docker/ubuntu-16.04 BEAKER_TESTMODE=apply
37-
rvm: 2.5.1
39+
rvm: 2.5.3
3840
script: bundle exec rake beaker
3941
services: docker
42+
stage: acceptance
4043
sudo: required
4144
-
42-
env: CHECK="syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop"
43-
-
44-
env: CHECK=parallel_spec
45+
env: CHECK="check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop syntax lint metadata_lint"
46+
stage: static
4547
-
4648
env: PUPPET_GEM_VERSION="~> 5.0" CHECK=parallel_spec
47-
rvm: 2.4.4
49+
rvm: 2.4.5
50+
stage: spec
51+
-
52+
env: PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec
53+
rvm: 2.5.3
54+
stage: spec
4855
-
49-
env: PUPPET_GEM_VERSION="~> 4.0" CHECK=parallel_spec RUBYGEMS_VERSION=2.7.8
50-
rvm: 2.1.9
56+
env: DEPLOY_TO_FORGE=yes
57+
stage: deploy
5158
branches:
5259
only:
5360
- master
5461
- /^v\d/
5562
- /.*/
5663
notifications:
5764
email: false
58-
deploy:
59-
provider: puppetforge
60-
user: puppet
61-
password:
62-
secure: ""
63-
on:
64-
tags: true
65-
all_branches: true
66-
condition: "$DEPLOY_TO_FORGE = yes"

Gemfile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ ruby_version_segments = Gem::Version.new(RUBY_VERSION.dup).segments
1717
minor_version = ruby_version_segments[0..1].join('.')
1818

1919
group :development do
20-
gem "fast_gettext", '1.1.0', require: false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.1.0')
21-
gem "fast_gettext", require: false if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.1.0')
22-
gem "json_pure", '<= 2.0.1', require: false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.0.0')
23-
gem "json", '= 1.8.1', require: false if Gem::Version.new(RUBY_VERSION.dup) == Gem::Version.new('2.1.9')
24-
gem "json", '= 2.0.4', require: false if Gem::Requirement.create('~> 2.4.2').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
25-
gem "json", '= 2.1.0', require: false if Gem::Requirement.create(['>= 2.5.0', '< 2.7.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
26-
gem "puppet-module-posix-default-r#{minor_version}", require: false, platforms: [:ruby]
27-
gem "puppet-module-posix-dev-r#{minor_version}", require: false, platforms: [:ruby]
28-
gem "puppet-module-win-default-r#{minor_version}", require: false, platforms: [:mswin, :mingw, :x64_mingw]
29-
gem "puppet-module-win-dev-r#{minor_version}", require: false, platforms: [:mswin, :mingw, :x64_mingw]
30-
gem "puppet-strings", '~> 2.0.0', require: false
20+
gem "fast_gettext", '1.1.0', require: false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.1.0')
21+
gem "fast_gettext", require: false if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.1.0')
22+
gem "json_pure", '<= 2.0.1', require: false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.0.0')
23+
gem "json", '= 1.8.1', require: false if Gem::Version.new(RUBY_VERSION.dup) == Gem::Version.new('2.1.9')
24+
gem "json", '= 2.0.4', require: false if Gem::Requirement.create('~> 2.4.2').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
25+
gem "json", '= 2.1.0', require: false if Gem::Requirement.create(['>= 2.5.0', '< 2.7.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
26+
gem "puppet-module-posix-default-r#{minor_version}", '~> 0.3', require: false, platforms: [:ruby]
27+
gem "puppet-module-posix-dev-r#{minor_version}", '~> 0.3', require: false, platforms: [:ruby]
28+
gem "puppet-module-win-default-r#{minor_version}", '~> 0.3', require: false, platforms: [:mswin, :mingw, :x64_mingw]
29+
gem "puppet-module-win-dev-r#{minor_version}", '~> 0.3', require: false, platforms: [:mswin, :mingw, :x64_mingw]
30+
gem "puppet-strings", '~> 2.0.0', require: false
3131
end
3232
group :system_tests do
3333
gem "puppet-module-posix-system-r#{minor_version}", require: false, platforms: [:ruby]

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ end
1515

1616
def changelog_project
1717
return unless Rake.application.top_level_tasks.include? "changelog"
18-
returnVal = nil || JSON.load(File.read('metadata.json'))['name']
18+
returnVal = nil || JSON.load(File.read('metadata.json'))['source'].match(%r{.*/([^/]*)})[1]
1919
raise "unable to find the changelog_project in .sync.yml or the name in metadata.json" if returnVal.nil?
2020
puts "GitHubChangelogGenerator project:#{returnVal}"
2121
returnVal

metadata.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"version_requirement": ">= 4.7.0 < 7.0.0"
5555
}
5656
],
57-
"pdk-version": "1.10.0",
58-
"template-url": "https://github.com/puppetlabs/pdk-templates#1.10.0",
59-
"template-ref": "1.10.0-0-gbba9ac3"
57+
"pdk-version": "1.11.0.pre (heads/master-0-gefa15f2)",
58+
"template-url": "https://github.com/puppetlabs/pdk-templates#master",
59+
"template-ref": "heads/master-0-ge1be36a"
6060
}

0 commit comments

Comments
 (0)