-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrating a CircleCI configuration
- Loading branch information
1 parent
4a436da
commit 195ca99
Showing
1 changed file
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |