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

Update Circleci config.yml #153

Open
wants to merge 2 commits into
base: main
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
60 changes: 24 additions & 36 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,57 +2,47 @@ version: 2.1
jobs:
standard:
docker:
- image: cimg/ruby:3.2.2
environment:
LANG: en_US.UTF-8
- environment:
BUNDLE_DISABLE_VERSION_CHECK: 1
LANG: en_US.UTF-8
image: cimg/ruby:3.2.2
steps:
- checkout
- run:
name: Install ruby dependencies
command: gem update --system; bin/setup
name: Install ruby dependencies
- run:
name: Run standardrb
command: bundle exec standardrb
name: Run standardrb
build:
parameters:
image-tag:
description: The target docker image
type: string
check-code-quality:
description: Execute style checks in build workflow
type: boolean
default: true
docker:
- image: cimg/<< parameters.image-tag >>
environment:
LANG: en_US.UTF-8
- environment:
BUNDLE_DISABLE_VERSION_CHECK: 1
LANG: en_US.UTF-8
image: cimg/<< parameters.image-tag >>
steps:
- checkout
- run:
name: Install ruby dependencies
command: gem update --system; bin/setup
- when:
condition: << parameters.check-code-quality >>
steps:
- run:
name: Install Code Climate test-reporter
command: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- run:
name: Prepare Code Climate test-reporter
command: ./cc-test-reporter before-build
name: Install ruby dependencies
- run:
command: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
name: Install Code Climate test-reporter
- run:
command: ./cc-test-reporter before-build
name: Prepare Code Climate test-reporter
- run:
name: Execute specs
command: bundle exec rake
- when:
condition: << parameters.check-code-quality >>
steps:
- run:
name: Report coverage
command: ./cc-test-reporter after-build --exit-code $?
name: Execute specs
- run:
command: ./cc-test-reporter after-build --exit-code $?
name: Report coverage

workflows:
build:
Expand All @@ -69,8 +59,6 @@ workflows:
matrix:
parameters:
image-tag:
- "ruby:3.0"
- "ruby:3.1"
- "ruby:3.2"
check-code-quality:
- false
- ruby:3.0
- ruby:3.1
- ruby:3.2
Loading