Skip to content

Commit

Permalink
creating or updating the build matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
fixbot committed Oct 17, 2023
1 parent ef0c6e5 commit 2dc42c8
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 3 deletions.
82 changes: 79 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,66 @@ jobs:
- run:
name: Build/release gem to artifactory
command: bundle exec rake push_artifactory
ruby-3_2_2-rails-7_1:
docker:
- image: cimg/ruby:3.2.2
auth:
username: "$DOCKERHUB_USERNAME"
password: "$DOCKERHUB_PASSWORD"
environment:
BUNDLE_GEMFILE: Gemfile.rails-7.1
working_directory: "~/stitches"
steps:
- checkout
- run:
name: Check for Gemfile.lock presence
command: ' if (test -f Gemfile.lock) then echo "Dont commit Gemfile.lock (see
https://github.com/stitchfix/eng-wiki/blob/main/architecture-decisions/0009-rubygem-dependencies-will-be-managed-more-explicitly.md)"
1>&2 ; exit 1 ; else exit 0 ; fi '
- run: bundle config stitchfix01.jfrog.io $ARTIFACTORY_USER:$ARTIFACTORY_TOKEN
- run: bundle install
- run: bundle exec rspec --format RspecJunitFormatter --out /tmp/test-results/rspec.xml
--format=doc
- run:
name: Run Additional CI Steps
command: if [ -e bin/additional-ci-steps ]; then bin/additional-ci-steps;
fi
- run:
name: Notify Pager Duty
command: bundle exec y-notify "#dev-platform-info"
when: on_fail
- store_test_results:
path: "/tmp/test-results"
ruby-3_1_4-rails-7_1:
docker:
- image: cimg/ruby:3.1.4
auth:
username: "$DOCKERHUB_USERNAME"
password: "$DOCKERHUB_PASSWORD"
environment:
BUNDLE_GEMFILE: Gemfile.rails-7.1
working_directory: "~/stitches"
steps:
- checkout
- run:
name: Check for Gemfile.lock presence
command: ' if (test -f Gemfile.lock) then echo "Dont commit Gemfile.lock (see
https://github.com/stitchfix/eng-wiki/blob/main/architecture-decisions/0009-rubygem-dependencies-will-be-managed-more-explicitly.md)"
1>&2 ; exit 1 ; else exit 0 ; fi '
- run: bundle config stitchfix01.jfrog.io $ARTIFACTORY_USER:$ARTIFACTORY_TOKEN
- run: bundle install
- run: bundle exec rspec --format RspecJunitFormatter --out /tmp/test-results/rspec.xml
--format=doc
- run:
name: Run Additional CI Steps
command: if [ -e bin/additional-ci-steps ]; then bin/additional-ci-steps;
fi
- run:
name: Notify Pager Duty
command: bundle exec y-notify "#dev-platform-info"
when: on_fail
- store_test_results:
path: "/tmp/test-results"
ruby-3_2_2-rails-7_0:
docker:
- image: cimg/ruby:3.2.2
Expand Down Expand Up @@ -189,13 +249,15 @@ workflows:
- release:
context: org-global
requires:
- ruby-3_2_2-rails-7_1
- ruby-3_1_4-rails-7_1
- ruby-3_2_2-rails-7_0
- ruby-3_1_4-rails-7_0
- ruby-3_2_2-rails-6_1
- ruby-3_1_4-rails-6_1
filters:
tags:
only: /^[0-9]+\.[0-9]+\.[0-9]+((-|\.)?(RC|rc)[-.]?\w*)?$/
only: "/^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$/"
branches:
ignore: /.*/
- generate-and-push-docs:
Expand All @@ -204,14 +266,24 @@ workflows:
- release
filters:
tags:
only: /^[0-9]+\.[0-9]+\.[0-9]+((-|\.)?(RC|rc)[-.]?\w*)?$/
only: "/^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$/"
branches:
ignore: /.*/
- ruby-3_2_2-rails-7_0:
- ruby-3_2_2-rails-7_1:
context: org-global
filters:
tags:
only: &1 /.*/
- ruby-3_1_4-rails-7_1:
context: org-global
filters:
tags:
only: *1
- ruby-3_2_2-rails-7_0:
context: org-global
filters:
tags:
only: *1
- ruby-3_1_4-rails-7_0:
context: org-global
filters:
Expand All @@ -231,6 +303,10 @@ workflows:
when:
equal: [ "schedule", << pipeline.parameters.GHA_Event >> ]
jobs:
- ruby-3_2_2-rails-7_1:
context: org-global
- ruby-3_1_4-rails-7_1:
context: org-global
- ruby-3_2_2-rails-7_0:
context: org-global
- ruby-3_1_4-rails-7_0:
Expand Down
7 changes: 7 additions & 0 deletions Gemfile.rails-7.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# DO NOT MODIFY - this is managed by Git Reduce in goro
#
source 'https://stitchfix01.jfrog.io/stitchfix01/api/gems/eng-gems/'

gemspec

gem 'rails', '~> 7.1.0'

0 comments on commit 2dc42c8

Please sign in to comment.