Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CORE-102] GitLab CI - Migrate spree_admin_roles_and_access #66

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@
.project
.sass-cache
coverage
Gemfile.lock
tmp
nbproject
pkg
*.swp
spec/dummy
.ruby-version
.byebug_history
56 changes: 56 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
# -------------------------------------------------------------
# Stages
# -------------------------------------------------------------

stages:
- prepare
- lint
- test
- post-test
- review
- deploy

# -------------------------------------------------------------
# Includes
# -------------------------------------------------------------

include:
- project: everlywell/projects/gitlab/ci-templates
ref: gl-code-quality-test-coverage
file:
- cache.gitlab-ci.yml
- code-quality.gitlab-ci.yml
- coverage.gitlab-ci.yml
- deploy.gitlab-ci.yml
- frontend.gitlab-ci.yml
- global.gitlab-ci.yml
- rails.gitlab-ci.yml
- rules.gitlab-ci.yml
- static-analysis.gitlab-ci.yml
- workflow.gitlab-ci.yml

# -------------------------------------------------------------
# Override included configurations
# -------------------------------------------------------------

variables:
APPLICATION: 'spree_admin_roles_and_access'
CI_DEFAULT_IMAGE: 'ruby-2.7.2-bundler-2.1.4-mysql-8.0.28-chrome-100-node-14.16-yarn-1.22-cctestreporter-latest'
RUN_YARN_TESTS: 'false'
USE_WEBPACKER_COMPILE: 'false'
SETUP_DB: 'false'
SETUP_PARALLEL: 'false'

rspec:
script:
- run_timed_command "bundle exec rake test_app"
- run_timed_command "bundle exec rspec"

brakeman:
script:
- run_timed_command "bundle exec brakeman $BRAKEMAN_CONFIDENCE_LEVEL --force"

# -------------------------------------------------------------
# Application-specific jobs
# -------------------------------------------------------------
19 changes: 19 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
inherit_from: .rubocop_todo.yml

require:
- rubocop-rspec

# inherit_from: .rubocop_todo.yml

AllCops:
NewCops: enable
TargetRubyVersion: 2.7.0
Exclude:
- bin/*
- gemfiles/*
- tmp/**/*
- vendor/**/*
- log/**/*
Style/SignalException:
EnforcedStyle: only_raise

Loading