Skip to content
Snippets Groups Projects
Commit d63422a9 authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Update the GitLab-CI file

parent 05ae70e6
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
stages: stages:
- puppet - puppet
variables:
GIT_LFS_SKIP_SMUDGE: 1 # Disable LFS by default
puppet-lint: puppet-lint:
tags: [puppet] tags: [puppet]
stage: puppet stage: puppet
...@@ -9,6 +12,7 @@ puppet-lint: ...@@ -9,6 +12,7 @@ puppet-lint:
script: script:
- puppet-lint - puppet-lint
--no-documentation-check --no-documentation-check
--no-autoloader_layout-check
--with-filename --with-filename
--config .puppet-lint.rc --config .puppet-lint.rc
--log-format '%{path}:%{line}:%{check}:%{KIND}:%{message}' --log-format '%{path}:%{line}:%{check}:%{KIND}:%{message}'
...@@ -23,9 +27,9 @@ puppet-parser: ...@@ -23,9 +27,9 @@ puppet-parser:
--strict_variables --strict_variables
--render-as s --render-as s
--modulepath="$(pwd)/.." --modulepath="$(pwd)/.."
manifests manifests/
- find templates -type f -name '*.epp' -print0 | - "[ -d templates ] && find templates/ -type f -name '*.epp' -print0 |
xargs -0r puppet epp validate --render-as s xargs -0r puppet epp validate --render-as s"
# TODO: Remove --no-strict-license once a license is in place # TODO: Remove --no-strict-license once a license is in place
- metadata-json-lint - metadata-json-lint
--no-strict-license --no-strict-license
...@@ -36,7 +40,7 @@ ruby: ...@@ -36,7 +40,7 @@ ruby:
stage: puppet stage: puppet
image: ruby:alpine image: ruby:alpine
script: script:
- "[ -d lib ] && find lib -type f -name '*.rb' -print0 | - "[ -d lib/ ] && find lib/ -type f -name '*.rb' -print0 |
xargs -0rn1 sh -c 'printf \"$0: \"; cat $0 | ruby -c 2>&1'" xargs -0rn1 sh -c 'printf \"$0: \"; cat $0 | ruby -c 2>&1'"
- "[ -d templates ] && find templates -type f -name '*.erb' -print0 | - "[ -d templates/ ] && find templates/ -type f -name '*.erb' -print0 |
xargs -0rn1 sh -c 'printf \"$0: \"; erb -PxT \"-\" \"$0\" | ruby -c 2>&1'" xargs -0rn1 sh -c 'printf \"$0: \"; erb -PxT \"-\" \"$0\" | ruby -c 2>&1'"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment