Skip to content
Snippets Groups Projects
Commit 312731cc authored by Darius Schneider's avatar Darius Schneider
Browse files

Update gitlab-ci.yml

parent 21140699
Branches
No related tags found
No related merge requests found
...@@ -22,9 +22,10 @@ rubocop: ...@@ -22,9 +22,10 @@ rubocop:
when: always when: always
paths: paths:
- vendor/gems - vendor/gems
script: before_script:
- wget --quiet "https://git-ce.rwth-aachen.de/noc-public/noc-netze-gitlab-cicd/-/raw/main/rails/rubocop.yml" -O ".rubocop.yml" - wget --quiet "https://git-ce.rwth-aachen.de/noc-public/noc-netze-gitlab-cicd/-/raw/main/rails/rubocop.yml" -O ".rubocop.yml"
- gem install rubocop:1.65.1 rubocop-capybara:2.21.0 rubocop-minitest:0.35.1 rubocop-performance:1.21.1 rubocop-rails:2.25.1 --silent - gem install --conservative rubocop:1.65.1 rubocop-capybara:2.21.0 rubocop-minitest:0.35.1 rubocop-performance:1.21.1 rubocop-rails:2.25.1 --silent
script:
- rubocop - rubocop
erb_lint: erb_lint:
...@@ -39,7 +40,7 @@ erb_lint: ...@@ -39,7 +40,7 @@ erb_lint:
before_script: before_script:
- wget --quiet "https://git-ce.rwth-aachen.de/noc-public/noc-netze-gitlab-cicd/-/raw/main/rails/rubocop.yml" -O ".rubocop.yml" - wget --quiet "https://git-ce.rwth-aachen.de/noc-public/noc-netze-gitlab-cicd/-/raw/main/rails/rubocop.yml" -O ".rubocop.yml"
- wget --quiet "https://git-ce.rwth-aachen.de/noc-public/noc-netze-gitlab-cicd/-/raw/main/rails/erb-lint.yml" -O ".erb-lint.yml" - wget --quiet "https://git-ce.rwth-aachen.de/noc-public/noc-netze-gitlab-cicd/-/raw/main/rails/erb-lint.yml" -O ".erb-lint.yml"
- gem install rubocop:1.65.1 rubocop-capybara:2.21.0 rubocop-minitest:0.35.1 rubocop-performance:1.21.1 rubocop-rails:2.25.1 erb_lint:0.6.0 --silent - gem install --conservative rubocop:1.65.1 rubocop-capybara:2.21.0 rubocop-minitest:0.35.1 rubocop-performance:1.21.1 rubocop-rails:2.25.1 erb_lint:0.6.0 --silent
script: script:
- erblint --lint-all --allow-no-files true - erblint --lint-all --allow-no-files true
...@@ -55,7 +56,7 @@ haml_lint: ...@@ -55,7 +56,7 @@ haml_lint:
before_script: before_script:
- wget --quiet "https://git-ce.rwth-aachen.de/noc-public/noc-netze-gitlab-cicd/-/raw/main/rails/rubocop.yml" -O ".rubocop.yml" - wget --quiet "https://git-ce.rwth-aachen.de/noc-public/noc-netze-gitlab-cicd/-/raw/main/rails/rubocop.yml" -O ".rubocop.yml"
- wget --quiet "https://git-ce.rwth-aachen.de/noc-public/noc-netze-gitlab-cicd/-/raw/main/rails/haml-lint.yml" -O ".haml-lint.yml" - wget --quiet "https://git-ce.rwth-aachen.de/noc-public/noc-netze-gitlab-cicd/-/raw/main/rails/haml-lint.yml" -O ".haml-lint.yml"
- gem install rubocop:1.65.1 rubocop-capybara:2.21.0 rubocop-minitest:0.35.1 rubocop-performance:1.21.1 rubocop-rails:2.25.1 haml_lint:0.58.0 --silent - gem install --conservative rubocop:1.65.1 rubocop-capybara:2.21.0 rubocop-minitest:0.35.1 rubocop-performance:1.21.1 rubocop-rails:2.25.1 haml_lint:0.58.0 --silent
script: script:
- haml-lint - haml-lint
...@@ -67,10 +68,10 @@ brakeman: ...@@ -67,10 +68,10 @@ brakeman:
cache: cache:
when: always when: always
paths: paths:
- vendor/gem - vendor/gems
before_script: before_script:
- rm -f ./config/brakeman.yml ./config/brakeman.ignore - rm -f ./config/brakeman.yml ./config/brakeman.ignore
- gem install brakeman --silent - gem install --conservative brakeman --silent
script: script:
- brakeman -A --except UnscopedFind - brakeman -A --except UnscopedFind
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment