Skip to content
Snippets Groups Projects

Issue #3417516 by Grimreaper: No more need to override stylelint job.

1 file
+ 0
12
Compare changes
  • Side-by-side
  • Inline
+ 0
12
@@ -7,15 +7,3 @@ include:
@@ -7,15 +7,3 @@ include:
- '/includes/include.drupalci.main.yml'
- '/includes/include.drupalci.main.yml'
- '/includes/include.drupalci.variables.yml'
- '/includes/include.drupalci.variables.yml'
- '/includes/include.drupalci.workflows.yml'
- '/includes/include.drupalci.workflows.yml'
# Override stylelint job to allow to ignore some files.
stylelint:
script:
- yarn --cwd $_WEB_ROOT/core add stylelint-junit-formatter
# Change directory to the project root folder.
- cd $CI_PROJECT_DIR/$_WEB_ROOT/modules/custom/$CI_PROJECT_NAME
# If there is no .stylelintignore file, there is no warning or error. The
# option is just ignored.
# The `|| true` makes sure the second call runs even if the first fails. https://stackoverflow.com/questions/59180675/how-to-continue-job-even-when-script-fails
- $CI_PROJECT_DIR/$_WEB_ROOT/core/node_modules/.bin/stylelint --ignore-path ./.stylelintignore --formatter verbose --config $CI_PROJECT_DIR/$_WEB_ROOT/core/.stylelintrc.json ./**/*.css --color || true
- $CI_PROJECT_DIR/$_WEB_ROOT/core/node_modules/.bin/stylelint --ignore-path ./.stylelintignore --formatter verbose --config $CI_PROJECT_DIR/$_WEB_ROOT/core/.stylelintrc.json ./**/*.css --color --custom-formatter $CI_PROJECT_DIR/$_WEB_ROOT/core/node_modules/stylelint-junit-formatter > $CI_PROJECT_DIR/junit.xml
Loading