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 May 16, 2019
1 parent b24f1f4 commit be95a8e
Showing 1 changed file with 39 additions and 10 deletions.
49 changes: 39 additions & 10 deletions .circleci/config.yml
Expand Up @@ -3,9 +3,22 @@
---
version: 2
jobs:
ruby-2.6.1:
release:
docker:
- image: circleci/ruby:2.6.1
- image: circleci/ruby:2.6.3
steps:
- checkout
- run: bundle install --full-index
- run:
name: Artifactory login
command: mkdir -p ~/.gem && curl -u$ARTIFACTORY_USER:$ARTIFACTORY_TOKEN https://stitchfix01.jfrog.io/stitchfix01/api/gems/eng-gems/api/v1/api_key.yaml
> ~/.gem/credentials && chmod 0600 ~/.gem/credentials
- run:
name: Build/release gem to artifactory
command: bundle exec rake push_artifactory
ruby-2.6.3:
docker:
- image: circleci/ruby:2.6.3
working_directory: "~/merch_calendar"
steps:
- checkout
Expand All @@ -18,13 +31,13 @@ jobs:
fi
- run:
name: Notify Pager Duty
command: 'bundle exec y-notify #erch-notifications'
command: bundle exec y-notify "#erch-notifications"
when: on_fail
- store_test_results:
path: "/tmp/test-results"
ruby-2.5.3:
ruby-2.5.5:
docker:
- image: circleci/ruby:2.5.3
- image: circleci/ruby:2.5.5
working_directory: "~/merch_calendar"
steps:
- checkout
Expand All @@ -37,18 +50,34 @@ jobs:
fi
- run:
name: Notify Pager Duty
command: 'bundle exec y-notify #erch-notifications'
command: bundle exec y-notify "#erch-notifications"
when: on_fail
- store_test_results:
path: "/tmp/test-results"
workflows:
version: 2
on-commit:
jobs:
- ruby-2.6.1:
- release:
context: org-global
- ruby-2.5.3:
requires:
- ruby-2.6.3
- ruby-2.5.5
filters:
tags:
only: /^[0-9]+\.[0-9]+\.[0-9](\.RC\d*)?$/
branches:
ignore: /.*/
- ruby-2.6.3:
context: org-global
filters:
tags:
only: &1 /.*/
- ruby-2.5.5:
context: org-global
filters:
tags:
only: *1
scheduled:
triggers:
- schedule:
Expand All @@ -58,7 +87,7 @@ workflows:
only:
- master
jobs:
- ruby-2.6.1:
- ruby-2.6.3:
context: org-global
- ruby-2.5.3:
- ruby-2.5.5:
context: org-global

0 comments on commit be95a8e

Please sign in to comment.