From e333ce271ebb03e38fd063ae441af1feaecbdb4d Mon Sep 17 00:00:00 2001
From: Darius Schneider <schneider@itc.rwth-aachen.de>
Date: Thu, 26 Sep 2024 14:19:43 +0200
Subject: [PATCH] ups

---
 rails/gitlab-ci.yml | 21 ++++-----------------
 1 file changed, 4 insertions(+), 17 deletions(-)

diff --git a/rails/gitlab-ci.yml b/rails/gitlab-ci.yml
index 75b0ca1..377e354 100644
--- a/rails/gitlab-ci.yml
+++ b/rails/gitlab-ci.yml
@@ -1,8 +1,9 @@
+variables:
+  CI: "true"
+  RAILS_ENV: test
+
 set_ruby_version:
   stage: build
-  variables:
-    CI: "true"
-    RAILS_ENV: test
   script:
     - echo "RUBY_VERSION=$(cat .ruby-version | sed 's/ruby-//g')" >> build.env
   artifacts:
@@ -12,9 +13,6 @@ set_ruby_version:
 rubocop:
   stage: test
   image: ruby:$RUBY_VERSION
-  variables:
-    CI: "true"
-    RAILS_ENV: test
   tags:
     - rails
   script:
@@ -25,9 +23,6 @@ rubocop:
 erb_lint:
   stage: test
   image: ruby:$RUBY_VERSION
-  variables:
-    CI: "true"
-    RAILS_ENV: test
   tags:
     - rails
   script:
@@ -39,9 +34,6 @@ erb_lint:
 haml_lint:
   stage: test
   image: ruby:$RUBY_VERSION
-  variables:
-    CI: "true"
-    RAILS_ENV: test
   tags:
     - rails
   script:
@@ -52,9 +44,6 @@ haml_lint:
 brakeman:
   stage: test
   image: ruby:$RUBY_VERSION
-  variables:
-    CI: "true"
-    RAILS_ENV: test
   tags:
     - rails
   script:
@@ -70,8 +59,6 @@ rails_test:
   services:
     - postgres:16.4
   variables:
-    CI: "true"
-    RAILS_ENV: test
     POSTGRES_DB: postgres
     POSTGRES_USER: postgres
     POSTGRES_PASSWORD: postgres
-- 
GitLab