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

ci

parent 600dd933
Branches
No related tags found
No related merge requests found
set_ruby_version:
stage: build
variables: variables:
CI: "true" CI: "true"
RAILS_ENV: test RAILS_ENV: test
set_ruby_version:
stage: build
script: script:
- echo "RUBY_VERSION=$(cat .ruby-version | sed 's/ruby-//g')" >> build.env - echo "RUBY_VERSION=$(cat .ruby-version | sed 's/ruby-//g')" >> build.env
artifacts: artifacts:
...@@ -13,6 +12,9 @@ set_ruby_version: ...@@ -13,6 +12,9 @@ set_ruby_version:
rubocop: rubocop:
stage: test stage: test
image: ruby:$RUBY_VERSION image: ruby:$RUBY_VERSION
variables:
CI: "true"
RAILS_ENV: test
tags: tags:
- rails - rails
script: script:
...@@ -23,6 +25,9 @@ rubocop: ...@@ -23,6 +25,9 @@ rubocop:
erb_lint: erb_lint:
stage: test stage: test
image: ruby:$RUBY_VERSION image: ruby:$RUBY_VERSION
variables:
CI: "true"
RAILS_ENV: test
tags: tags:
- rails - rails
script: script:
...@@ -34,6 +39,9 @@ erb_lint: ...@@ -34,6 +39,9 @@ erb_lint:
haml_lint: haml_lint:
stage: test stage: test
image: ruby:$RUBY_VERSION image: ruby:$RUBY_VERSION
variables:
CI: "true"
RAILS_ENV: test
tags: tags:
- rails - rails
script: script:
...@@ -44,6 +52,9 @@ haml_lint: ...@@ -44,6 +52,9 @@ haml_lint:
brakeman: brakeman:
stage: test stage: test
image: ruby:$RUBY_VERSION image: ruby:$RUBY_VERSION
variables:
CI: "true"
RAILS_ENV: test
tags: tags:
- rails - rails
script: script:
...@@ -52,13 +63,15 @@ brakeman: ...@@ -52,13 +63,15 @@ brakeman:
- brakeman -A --except UnscopedFind - brakeman -A --except UnscopedFind
rails_test: rails_test:
image: ruby:$RUBY_VERSION
stage: test stage: test
image: ruby:$RUBY_VERSION
tags: tags:
- rails - rails
services: services:
- postgres:16.4 - postgres:16.4
variables: variables:
CI: "true"
RAILS_ENV: test
POSTGRES_DB: postgres POSTGRES_DB: postgres
POSTGRES_USER: postgres POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres POSTGRES_PASSWORD: postgres
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment