Skip to content
Snippets Groups Projects

Test all the used rubies

Merged Steve Traylen requested to merge multruby into master
+ 41
8
@@ -18,7 +18,6 @@ validate:
- ruby -ryaml -e 'y = YAML.load_file("managed_modules.yml") ; abort("managed_modules.yml has a duplicate entry") if y != y.uniq'
- if grep '[[:blank:]]$' managed_modules.yml ; then echo 'Contains trailing blank spaces' ; false ; fi
# This job clones every repository so only on master.
msync:everything:
stage: msync
@@ -92,7 +91,7 @@ msync:chosen:
script:
- dnf install -y epel-release
- dnf update -y
- dnf install -y redhat-rpm-config git gcc-c++ make augeas-devel openssh-clients libxslt-devel openldap-devel unzip dmidecode which rubygem-yaml-lint openssl-devel ruby-build-rbenv patch bzip2
- dnf install -y redhat-rpm-config git gcc-c++ make augeas-devel openssh-clients libxslt-devel openldap-devel unzip dmidecode which rubygem-yaml-lint openssl-devel readline-devel ruby-build-rbenv patch bzip2
- cd modules/ai/${MODULE}
- yaml-lint .gitlab-ci.yml
- if [ -d data ] ; then yaml-lint data ; else true; fi
@@ -101,38 +100,72 @@ msync:chosen:
- if [ -d code/data ] ; then ruby ci/extra-yaml-checks.rb code/data ; fi
- if [ -f .sync.yml ] ; then yaml-lint .sync.yml ; else true; fi
- eval "$(rbenv init - bash)"
- rbenv install 2.7.6
- rbenv local 2.7.6
- rbenv install $RUBY
- rbenv global $RUBY
- |
if [ "${RUBY}" == '2.5.8' ] ; then
gem install bundler -v 2.3.26 # bundler did not come with ruby back then
fi
- cd code
- sed -i "s#ssh://git@gitlab.cern.ch:7999/#https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.cern.ch/#" .fixtures.yml
- BUNDLE_GEMFILE=../ci/Gemfile FACTER_GEM_VERSION='~> 4.0' PUPPET_VERSION='~> 7.0' bundle install
- BUNDLE_GEMFILE=../ci/Gemfile FACTER_GEM_VERSION='~> 4.0' PUPPET_VERSION='~> 7.0' bundle exec rake --rakefile ../ci/Rakefile test
- BUNDLE_GEMFILE=../ci/Gemfile FACTER_GEM_VERSION='~> 4.0' PUPPET_VERSION='~> 7.0' bundle exec rake --rakefile ../ci/Rakefile rubocop
module:ci_images:
module:2.5.8:ci_images:
variables:
MODULE: it-puppet-module-ci_images
RUBY: 2.5.8
<<: *module_rspec_template
module:2.7.6:ci_images:
variables:
MODULE: it-puppet-module-ci_images
RUBY: 2.7.6
<<: *module_rspec_template
# At any particular time bagplus and punch could fail against
# a new future. Good to know though. Would be good to collect
# some richness of .sync.yml settings
module:punch:
module:2.5.8:punch:
variables:
MODULE: it-puppet-hostgroup-punch
RUBY: 2.5.8
<<: *module_rspec_template
allow_failure: true
module:2.7.6:punch:
variables:
MODULE: it-puppet-hostgroup-punch
RUBY: 2.7.6
<<: *module_rspec_template
allow_failure: true
module:bagplus:
module:2.5.8:bagplus:
variables:
MODULE: it-puppet-module-bagplus
RUBY: 2.5.8
<<: *module_rspec_template
allow_failure: true
module:nftables:
module:2.7.6:bagplus:
variables:
MODULE: it-puppet-module-bagplus
RUBY: 2.7.6
<<: *module_rspec_template
allow_failure: true
module:2.5.8:nftables:
variables:
MODULE: it-puppet-module-nftables
RUBY: 2.5.8
<<: *module_rspec_template
allow_failure: true
module:2.7.6:nftables:
variables:
MODULE: it-puppet-module-nftables
RUBY: 2.7.6
<<: *module_rspec_template
allow_failure: true
Loading