Commit 3fd16aba authored by Fabien Combernous's avatar Fabien Combernous

Resolve "use command bundle instead of pdk into gitlab-ci.yml"

parent 30ca578e
---
stages:
- validate-syntax
- test-unit
- acceptance-puppet4
- acceptance-puppet5
- syntax
- unit
- acceptance
cache:
paths:
- vendor/bundle
before_script:
- pdk --version
- bundle -v
- rm Gemfile.lock || true
- gem update --system
- gem --version
- bundle -v
- bundle install --without system_tests --path vendor/bundle --jobs $(nproc)
pdk_validate:
stage: 'validate-syntax'
syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop-Ruby 2.4.4-Puppet ~> 5.5:
stage: syntax
script:
- pdk validate
- bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
variables:
PUPPET_GEM_VERSION: '~> 5.5'
RBENV_VERSION: '2.4.4'
tags:
- puppet-tests
- fast
pdk_test_unit:
stage: 'test-unit'
parallel_spec-Ruby 2.1.9-Puppet ~> 4.0:
stage: unit
script:
- pdk test unit
- bundle exec rake parallel_spec
variables:
PUPPET_GEM_VERSION: '~> 4.0'
RBENV_VERSION: '2.4.4'
tags:
- puppet-tests
- fast
parallel_spec-Ruby 2.4.4-Puppet ~> 5.5:
stage: unit
script:
- bundle exec rake parallel_spec
variables:
PUPPET_GEM_VERSION: '~> 5.5'
RBENV_VERSION: '2.5.1'
tags:
- puppet-tests
- fast
acceptance_with_puppet5:
stage: 'acceptance-puppet5'
acceptance with puppet5:
stage: acceptance
variables:
PUPPET_INSTALL_TYPE: 'agent'
BEAKER_IS_PE: 'no'
BEAKER_PUPPET_COLLECTION: 'puppet5'
BEAKER_debug: 'true'
BEAKER_debug: 'true '
RBENV_VERSION: '2.5.1'
script:
- pdk bundle exec rake beaker:default
- bundle exec rake beaker:default
tags:
- puppet-tests
- fast
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment