Skip to content

Commit

Permalink
Integrating a CircleCI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgriffiniii committed Oct 14, 2024
1 parent 4a436da commit 195ca99
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
version: 2.1
orbs:
samvera: samvera/[email protected]
jobs:
ci:
parameters:
ruby_version:
type: string
bundler_version:
type: string
default: 2.3.11
ruby_type:
type: string
default: 'ruby'
docker:
- image: cimg/<< parameters.ruby_type >>:<< parameters.ruby_version >>-browsers
environment:
BUNDLE_PATH: vendor/bundle
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
SPEC_OPTS: --profile 10 --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress
steps:
- samvera/cached_checkout
- checkout
- run:
name: Check for 'master' branch
command: |
git fetch --all --quiet --prune --prune-tags
if [[ -n "$(git branch --all --list master */master)" ]]; then
echo "A branch named 'master' was found. Please remove it."
echo "$(git branch --all --list master */master)"
fi
[[ -z "$(git branch --all --list master */master)" ]]
- samvera/bundle_for_gem:
ruby_version: << parameters.ruby_version >>
bundler_version: << parameters.bundler_version >>
project: 'huborg'

- samvera/rubocop

- samvera/parallel_rspec

workflows:
ci:
jobs:
# Ruby 3.3 releases
- ci:
name: ruby3-3
ruby_version: 3.3.4
# Ruby 3.2 releases
- ci:
name: ruby3-2
ruby_version: 3.2.5
# Ruby 3.1 releases
- ci:
name: ruby3-1
ruby_version: 3.1.6

nightly:
triggers:
- schedule:
cron: "0 0 * * *"
filters:
branches:
only:
- main
jobs:
# Ruby 3.3 releases
- ci:
name: ruby3-3
ruby_version: 3.3.4
# Ruby 3.2 releases
- ci:
name: ruby3-2
ruby_version: 3.2.5
# Ruby 3.1 releases
- ci:
name: ruby3-1
ruby_version: 3.1.6

0 comments on commit 195ca99

Please sign in to comment.