.gitlab-ci.yml 995 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ---
  2. stages:
  3. - syntax
  4. - unit
  5. cache:
  6. paths:
  7. - vendor/bundle
  8. before_script:
  9. - bundle -v
  10. - rm Gemfile.lock || true
  11. - gem update --system $RUBYGEMS_VERSION
  12. - gem --version
  13. - bundle -v
  14. - bundle install --without system_tests --path vendor/bundle --jobs $(nproc)
  15. parallel_spec-Ruby 2.1.9-Puppet ~> 4.0:
  16. stage: unit
  17. image: ruby:2.1.9
  18. script:
  19. - bundle exec rake parallel_spec
  20. variables:
  21. PUPPET_GEM_VERSION: '~> 4.0'
  22. RUBYGEMS_VERSION: '2.7.8'
  23. syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop-Ruby 2.4.4-Puppet ~> 5.5:
  24. stage: syntax
  25. image: ruby:2.4.4
  26. script:
  27. - bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
  28. variables:
  29. PUPPET_GEM_VERSION: '~> 5.5'
  30. parallel_spec-Ruby 2.4.4-Puppet ~> 5.5:
  31. stage: unit
  32. image: ruby:2.4.4
  33. script:
  34. - bundle exec rake parallel_spec
  35. variables:
  36. PUPPET_GEM_VERSION: '~> 5.5'