Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
noc-netze-gitlab-cicd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NOC-public
noc-netze-gitlab-cicd
Commits
0f2b74df
Commit
0f2b74df
authored
9 months ago
by
Darius Schneider
Browse files
Options
Downloads
Patches
Plain Diff
revert
parent
0e210771
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
rails/gitlab-ci.yml
+47
-41
47 additions, 41 deletions
rails/gitlab-ci.yml
with
47 additions
and
41 deletions
rails/gitlab-ci.yml
+
47
−
41
View file @
0f2b74df
stages
:
set_ruby_version
:
-
detect_ruby
stage
:
build
-
test
default
:
tags
:
-
rails
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/erb-lint.yml" -O ".erb-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"
-
rm -f ./config/brakeman.yml ./config/brakeman.ignore
-
gem install bundler --silent && bundle install --quiet
variables
:
RAILS_ENV
:
test
detect_ruby
:
stage
:
detect_ruby
script
:
script
:
-
echo "RUBY_VERSION=$(cat .ruby-version | sed 's/ruby-//g')" >>
detect_ruby
.env
-
echo "RUBY_VERSION=$(cat .ruby-version | sed 's/ruby-//g')" >>
build
.env
artifacts
:
artifacts
:
reports
:
reports
:
dotenv
:
detect_ruby
.env
dotenv
:
build
.env
rubocop
:
rubocop
:
image
:
ruby:$RUBY_VERSION
stage
:
test
stage
:
test
image
:
ruby:$RUBY_VERSION
tags
:
-
rails
script
:
script
:
-
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-minitest:0.35.1 rubocop-performance:1.21.1 rubocop-rails:2.25.1 --silent
-
rubocop
-
rubocop
erb_lint
:
erb_lint
:
image
:
ruby:$RUBY_VERSION
stage
:
test
stage
:
test
image
:
ruby:$RUBY_VERSION
tags
:
-
rails
script
:
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/erb-lint.yml" -O ".erb-lint.yml"
-
gem install rubocop:1.65.1 rubocop-minitest:0.35.1 rubocop-performance:1.21.1 rubocop-rails:2.25.1 erb_lint:0.6.0 --silent
-
erblint --lint-all --allow-no-files
true
-
erblint --lint-all --allow-no-files
true
haml_lint
:
haml_lint
:
image
:
ruby:$RUBY_VERSION
stage
:
test
stage
:
test
image
:
ruby:$RUBY_VERSION
tags
:
-
rails
script
:
script
:
-
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-minitest:0.35.1 rubocop-performance:1.21.1 rubocop-rails:2.25.1 haml_lint:0.58.0 --silent
-
haml-lint
-
haml-lint
brakeman
:
brakeman
:
image
:
ruby:$RUBY_VERSION
stage
:
test
stage
:
test
image
:
ruby:$RUBY_VERSION
tags
:
-
rails
script
:
script
:
-
rm -f ./config/brakeman.yml ./config/brakeman.ignore
-
gem install brakeman --silent
-
brakeman -A --except UnscopedFind
-
brakeman -A --except UnscopedFind
rails_test
:
rails_test
:
image
:
ruby:$RUBY_VERSION
image
:
ruby:$RUBY_VERSION
stage
:
test
stage
:
test
tags
:
-
rails
script
:
script
:
-
gem install bundler --silent && bundle install --quiet
-
bin/rails db:prepare test
-
bin/rails db:prepare test
#rails_system_test:
rails_system_test
:
# image: ruby:$RUBY_VERSION
image
:
ruby:$RUBY_VERSION
# stage: test
stage
:
test
# services:
tags
:
# - selenium/standalone-chrome:latest
-
rails
# variables:
services
:
# SELENIUM_URL: http://selenium__standalone-chrome:4444/wd/hub
-
selenium/standalone-chrome:latest
# artifacts:
variables
:
# when: on_failure
SELENIUM_URL
:
http://selenium__standalone-chrome:4444/wd/hub
# paths:
artifacts
:
# - tmp/screenshots
when
:
on_failure
# - /tmp/chrome.log
paths
:
# - log/test.log
-
tmp/screenshots
# expire_in: 1 week
-
/tmp/chrome.log
# script:
-
log/test.log
# - bin/rails db:prepare test:system
expire_in
:
1 week
script
:
-
gem install bundler --silent && bundle install --quiet
-
bin/rails db:prepare test:system
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment