2018-08-22 06:07:49 -04:00
|
|
|
---
|
|
|
|
stages:
|
|
|
|
- syntax
|
|
|
|
- unit
|
|
|
|
|
2021-11-06 07:36:59 -04:00
|
|
|
default:
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- vendor/bundle
|
2018-08-22 06:07:49 -04:00
|
|
|
|
2021-11-06 07:36:59 -04:00
|
|
|
before_script: &before_script
|
|
|
|
- bundle -v
|
|
|
|
- rm Gemfile.lock || true
|
|
|
|
- "# Update system gems if requested. This is useful to temporarily workaround troubles in the test runner"
|
|
|
|
- "# Set `rubygems_version` in the .sync.yml to set a value"
|
|
|
|
- "# Ignore exit code of SIGPIPE'd yes to not fail with shell's pipefail set"
|
|
|
|
- '[ -z "$RUBYGEMS_VERSION" ] || (yes || true) | gem update --system $RUBYGEMS_VERSION'
|
|
|
|
- gem --version
|
|
|
|
- bundle -v
|
|
|
|
- bundle install --without system_tests --path vendor/bundle --jobs $(nproc)
|
2018-08-22 06:07:49 -04:00
|
|
|
|
2021-11-06 07:36:59 -04:00
|
|
|
validate lint check rubocop-Ruby 2.5.7-Puppet ~> 6:
|
|
|
|
stage: syntax
|
|
|
|
image: ruby:2.5.7
|
|
|
|
script:
|
|
|
|
- bundle exec rake validate lint check rubocop
|
|
|
|
variables:
|
|
|
|
PUPPET_GEM_VERSION: '~> 6'
|
|
|
|
|
|
|
|
parallel_spec-Ruby 2.5.7-Puppet ~> 6:
|
2018-08-22 06:07:49 -04:00
|
|
|
stage: unit
|
2021-11-06 07:36:59 -04:00
|
|
|
image: ruby:2.5.7
|
2018-08-22 06:07:49 -04:00
|
|
|
script:
|
|
|
|
- bundle exec rake parallel_spec
|
|
|
|
variables:
|
2021-11-06 07:36:59 -04:00
|
|
|
PUPPET_GEM_VERSION: '~> 6'
|
2018-08-22 06:07:49 -04:00
|
|
|
|
2021-11-06 07:36:59 -04:00
|
|
|
validate lint check rubocop-Ruby 2.7.2-Puppet ~> 7:
|
2018-08-22 06:07:49 -04:00
|
|
|
stage: syntax
|
2021-11-06 07:36:59 -04:00
|
|
|
image: ruby:2.7.2
|
2018-08-22 06:07:49 -04:00
|
|
|
script:
|
2021-11-06 07:36:59 -04:00
|
|
|
- bundle exec rake validate lint check rubocop
|
2018-08-22 06:07:49 -04:00
|
|
|
variables:
|
2021-11-06 07:36:59 -04:00
|
|
|
PUPPET_GEM_VERSION: '~> 7'
|
2018-08-22 06:07:49 -04:00
|
|
|
|
2021-11-06 07:36:59 -04:00
|
|
|
parallel_spec-Ruby 2.7.2-Puppet ~> 7:
|
2018-08-22 06:07:49 -04:00
|
|
|
stage: unit
|
2021-11-06 07:36:59 -04:00
|
|
|
image: ruby:2.7.2
|
2018-08-22 06:07:49 -04:00
|
|
|
script:
|
|
|
|
- bundle exec rake parallel_spec
|
|
|
|
variables:
|
2021-11-06 07:36:59 -04:00
|
|
|
PUPPET_GEM_VERSION: '~> 7'
|
2018-08-22 06:07:49 -04:00
|
|
|
|