Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Puppet module - Automated Comptoir du Libre deployment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Comptoir
Puppet module - Automated Comptoir du Libre deployment
Commits
dd34860e
Commit
dd34860e
authored
10 months ago
by
Fabrice Gangler
Browse files
Options
Downloads
Patches
Plain Diff
use PDK 3.2.0 (.gitlab-ci.yml): udpate Gitlab CI
parent
488febf6
No related branches found
No related tags found
1 merge request
!2
Resolve "use PDK 3.2.0 and Ruby 3.2.0"
Pipeline
#76431
failed
10 months ago
Stage: syntax
Stage: unit
Stage: acceptance
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+50
-35
50 additions, 35 deletions
.gitlab-ci.yml
with
50 additions
and
35 deletions
.gitlab-ci.yml
+
50
−
35
View file @
dd34860e
...
...
@@ -5,68 +5,83 @@ stages:
-
acceptance
-
release
default
:
.in-acceptance-only-matrix
:
parallel
:
matrix
:
-
RUBY_VERSION
:
[
'
3.2.0'
]
PUPPET_GEM_VERSION
:
[
'
~>
7'
]
PUPPET_COLLECTION
:
[
'
7'
]
DISTRIB
:
[
'
ubuntu2204-64'
]
.common-matrix
:
parallel
:
matrix
:
-
RUBY_VERSION
:
[
'
3.2.0'
]
PUPPET_GEM_VERSION
:
[
'
~>
7'
]
image
:
ruby:${RUBY_VERSION}
cache
:
paths
:
-
vendor/bundle
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'
before_script
:
-
rm -f Gemfile.lock ||
true
-
ruby --version
-
gem --version
-
bundle -v
-
bundle install --without system_tests --path vendor/bundle --jobs $(nproc)
-
bundle config set --local path 'vendor/bundle'
-
bundle config set --local without 'system_tests'
-
bundle config set --local jobs $(nproc)
-
bundle install
-
bundle clean
-
bundle env
validate lint check rubocop-Ruby 2.7.5-Puppet ~> 7
:
syntax
:
extends
:
.common-matrix
stage
:
syntax
image
:
ruby:2.7.5
script
:
-
bundle exec rake validate lint check rubocop
variables
:
PUPPET_GEM_VERSION
:
"
~>
7"
parallel_spec-Ruby 2.7.5-Puppet ~> 7
:
-
bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
unit
:
needs
:
-
syntax
extends
:
.common-matrix
stage
:
unit
image
:
ruby:2.7.5
script
:
-
bundle exec rake parallel_spec
variables
:
PUPPET_GEM_VERSION
:
"
~>
7"
acceptance with puppet7 ubuntu2204
:
-
bundle exec rake parallel_spec
acceptance
:
needs
:
-
parallel_spec-Ruby 2.7.5-Puppet ~>
7
-
unit
extends
:
-
.common-matrix
-
.in-acceptance-only-matrix
stage
:
acceptance
variables
:
RBENV_VERSION
:
2.7.5
RBENV_VERSION
:
${RUBY_VERSION}
PUPPET_INSTALL_TYPE
:
agent
BEAKER_IS_PE
:
'
no'
BEAKER_PUPPET_COLLECTION
:
puppet
7
BEAKER_PUPPET_COLLECTION
:
puppet
${PUPPET_COLLECTION}
BEAKER_debug
:
'
true'
BEAKER_setfile
:
ubuntu2204-64
{hostname=comptoir.example.com}
BEAKER_setfile
:
${DISTRIB}
{hostname=comptoir.example.com}
BEAKER_HYPERVISOR
:
docker
script
:
-
bundle exec rake beaker
-
bundle exec rake beaker
tags
:
-
puppet-tests
-
beaker-acceptance
module release
:
stage
:
release
image
:
ruby:2.7.5
extends
:
.common-matrix
variables
:
PUPPET_GEM_VERSION
:
"
~>
7"
BLACKSMITH_FORGE_USERNAME
:
"
$BLACKSMITH_FORGE_USERNAME"
BLACKSMITH_FORGE_API_KEY
:
"
$BLACKSMITH_FORGE_API_KEY"
script
:
-
bundle exec puppet strings generate --format markdown --out REFERENCE.md
-
bundle exec rake module:push
-
bundle exec puppet strings generate --format markdown --out REFERENCE.md
-
bundle exec rake module:push
only
:
-
tags
-
tags
except
:
-
branches
-
branches
artifacts
:
paths
:
-
pkg/
-
pkg/
expire_in
:
6 weeks
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment