Projet

Général

Profil

Révision 20eaf3c2

ID20eaf3c2031eaeb922e47ee0bf450644f47922ef
Parent 9ea14bc0
Enfant c82b960a

Ajouté par Tim Stallmann il y a plus de 3 ans

modulesync 5.1.0

Voir les différences:

.gitlab-ci.yml
1
---
2
stages:
3
  - syntax
4
  - unit
5

  
6
cache:
7
  paths:
8
    - vendor/bundle
9

  
10
before_script:
11
  - bundle -v
12
  - rm Gemfile.lock || true
13
  - "# Update system gems if requested. This is useful to temporarily workaround troubles in the test runner"
14
  - "# Set `rubygems_version` in the .sync.yml to set a value"
15
  - "# Ignore exit code of SIGPIPE'd yes to not fail with shell's pipefail set"
16
  - '[ -z "$RUBYGEMS_VERSION" ] || (yes || true) | gem update --system $RUBYGEMS_VERSION'
17
  - gem --version
18
  - bundle -v
19
  - bundle install --without system_tests --path vendor/bundle --jobs $(nproc)
20

  
21
syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop-Ruby 2.5-Puppet ~> 6:
22
  stage: syntax
23
  image: registry.code.immerda.ch/immerda/container-images/ruby/devel:2.5
24
  script:
25
    - bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
26
  variables:
27
    PUPPET_GEM_VERSION: '~> 6'
28
  tags:
29
    - container
30

  
31
parallel_spec-Ruby 2.5-Puppet ~> 6:
32
  stage: unit
33
  image: registry.code.immerda.ch/immerda/container-images/ruby/devel:2.5
34
  script:
35
    - bundle exec rake parallel_spec
36
  variables:
37
    PUPPET_GEM_VERSION: '~> 6'
38
  tags:
39
    - container
40

  
.msync.yml
2 2
# Managed by modulesync - DO NOT EDIT
3 3
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
4 4

  
5
modulesync_config_version: '4.2.0'
5
modulesync_config_version: '5.1.0'
.pdkignore
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
25
.project
26
.envrc
27
/inventory.yaml
28
/appveyor.yml
29
/.fixtures.yml
30
/Gemfile
31
/.gitattributes
32
/.gitignore
33
/.gitlab-ci.yml
34
/.pdkignore
35
/Rakefile
36
/rakelib/
37
/.rspec
38
/.rubocop.yml
39
/.travis.yml
40
/.yardopts
41
/spec/
42
/.vscode/
.puppet-lint.rc
1
--relative
1
--fail-on-warnings
2
--no-parameter_documentation-check
3
--no-parameter_types-check
Gemfile
4 4
source ENV['GEM_SOURCE'] || "https://rubygems.org"
5 5

  
6 6
group :test do
7
  gem 'voxpupuli-test', '~> 2.5',   :require => false
7
  gem 'voxpupuli-test', '~> 5.0',   :require => false
8 8
  gem 'coveralls',                  :require => false
9 9
  gem 'simplecov-console',          :require => false
10 10
  gem 'puppet_metadata', '~> 1.0',  :require => false
......
22 22

  
23 23
group :release do
24 24
  gem 'github_changelog_generator', '>= 1.16.1',  :require => false if RUBY_VERSION >= '2.5'
25
  gem 'voxpupuli-release', '>= 1.0.2',            :require => false
25
  gem 'voxpupuli-release', '>= 1.2.0',            :require => false
26 26
  gem 'puppet-strings', '>= 2.2',                 :require => false
27 27
end
28 28

  
Rakefile
1 1
# Managed by modulesync - DO NOT EDIT
2 2
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
3 3

  
4
# Attempt to load voxupuli-test (which pulls in puppetlabs_spec_helper),
4
# Attempt to load voxpupuli-test (which pulls in puppetlabs_spec_helper),
5 5
# otherwise attempt to load it directly.
6 6
begin
7 7
  require 'voxpupuli/test/rake'
appveyor.yml
1
---
2
version: 1.1.x.{build}
3
branches:
4
  only:
5
    - master
6
    - release
7
skip_commits:
8
  message: /^\(?doc\)?.*/
9
clone_depth: 10
10
init:
11
  - SET
12
  - 'mkdir C:\ProgramData\PuppetLabs\code && exit 0'
13
  - 'mkdir C:\ProgramData\PuppetLabs\facter && exit 0'
14
  - 'mkdir C:\ProgramData\PuppetLabs\hiera && exit 0'
15
  - 'mkdir C:\ProgramData\PuppetLabs\puppet\var && exit 0'
16
environment:
17
  matrix:
18
    -
19
      RUBY_VERSION: 24-x64
20
      CHECK: syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
21
    -
22
      PUPPET_GEM_VERSION: ~> 5.0
23
      RUBY_VERSION: 24
24
      CHECK: parallel_spec
25
    -
26
      PUPPET_GEM_VERSION: ~> 5.0
27
      RUBY_VERSION: 24-x64
28
      CHECK: parallel_spec
29
    -
30
      PUPPET_GEM_VERSION: ~> 6.0
31
      RUBY_VERSION: 25
32
      CHECK: parallel_spec
33
    -
34
      PUPPET_GEM_VERSION: ~> 6.0
35
      RUBY_VERSION: 25-x64
36
      CHECK: parallel_spec
37
matrix:
38
  fast_finish: true
39
install:
40
  - set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
41
  - bundle install --jobs 4 --retry 2 --without system_tests
42
  - type Gemfile.lock
43
build: off
44
test_script:
45
  - bundle exec puppet -V
46
  - ruby -v
47
  - gem -v
48
  - bundle -v
49
  - bundle exec rake %CHECK%
50
notifications:
51
  - provider: Email
52
    to:
53
      - nobody@nowhere.com
54
    on_build_success: false
55
    on_build_failure: false
56
    on_build_status_changed: false
spec/spec_helper.rb
1
# frozen_string_literal: true
2

  
1 3
# Managed by modulesync - DO NOT EDIT
2 4
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
3 5

  
......
7 9

  
8 10
# puppetlabs_spec_helper will set up coverage if the env variable is set.
9 11
# We want to do this if lib exists and it hasn't been explicitly set.
10
ENV['COVERAGE'] ||= 'yes' if Dir.exist?(File.expand_path('../../lib', __FILE__))
12
ENV['COVERAGE'] ||= 'yes' if Dir.exist?(File.expand_path('../lib', __dir__))
11 13

  
12 14
require 'voxpupuli/test/spec_helper'
13 15

  
14 16
if File.exist?(File.join(__dir__, 'default_module_facts.yml'))
15 17
  facts = YAML.safe_load(File.read(File.join(__dir__, 'default_module_facts.yml')))
16
  if facts
17
    facts.each do |name, value|
18
      add_custom_fact name.to_sym, value
19
    end
18
  facts&.each do |name, value|
19
    add_custom_fact name.to_sym, value
20 20
  end
21 21
end
spec/spec_helper_acceptance.rb
1
# frozen_string_literal: true
2

  
1 3
# Managed by modulesync - DO NOT EDIT
2 4
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
3 5

  

Formats disponibles : Unified diff