-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Automatically update via pdk update using PDK v2.5.0 * Add `.sync.yml` per @vStone in #162 to future-proof
- Loading branch information
1 parent
eaa1c94
commit 571b0b5
Showing
17 changed files
with
920 additions
and
654 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM puppet/pdk:latest | ||
|
||
# [Optional] Uncomment this section to install additional packages. | ||
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
# && apt-get -y install --no-install-recommends <your-package-list-here> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# devcontainer | ||
|
||
|
||
For format details, see https://aka.ms/devcontainer.json. | ||
|
||
For config options, see the README at: | ||
https://github.com/microsoft/vscode-dev-containers/tree/v0.140.1/containers/puppet | ||
|
||
``` json | ||
{ | ||
"name": "Puppet Development Kit (Community)", | ||
"dockerFile": "Dockerfile", | ||
|
||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"terminal.integrated.profiles.linux": { | ||
"bash": { | ||
"path": "bash", | ||
} | ||
} | ||
}, | ||
|
||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"puppet.puppet-vscode", | ||
"rebornix.Ruby" | ||
], | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
"forwardPorts": [], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
"postCreateCommand": "pdk --version", | ||
} | ||
``` | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "Puppet Development Kit (Community)", | ||
"dockerFile": "Dockerfile", | ||
"settings": { | ||
"terminal.integrated.profiles.linux": { | ||
"bash": { | ||
"path": "bash" | ||
} | ||
} | ||
}, | ||
"extensions": [ | ||
"puppet.puppet-vscode", | ||
"rebornix.Ruby" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
stages: | ||
- syntax | ||
- unit | ||
|
||
default: | ||
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' | ||
- gem --version | ||
- bundle -v | ||
- bundle install --without system_tests --path vendor/bundle --jobs $(nproc) | ||
|
||
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: | ||
stage: unit | ||
image: ruby:2.5.7 | ||
script: | ||
- bundle exec rake parallel_spec | ||
variables: | ||
PUPPET_GEM_VERSION: '~> 6' | ||
|
||
validate lint check rubocop-Ruby 2.7.2-Puppet ~> 7: | ||
stage: syntax | ||
image: ruby:2.7.2 | ||
script: | ||
- bundle exec rake validate lint check rubocop | ||
variables: | ||
PUPPET_GEM_VERSION: '~> 7' | ||
|
||
parallel_spec-Ruby 2.7.2-Puppet ~> 7: | ||
stage: unit | ||
image: ruby:2.7.2 | ||
script: | ||
- bundle exec rake parallel_spec | ||
variables: | ||
PUPPET_GEM_VERSION: '~> 7' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--relative |
Oops, something went wrong.