mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
circleci
This commit is contained in:
parent
e40444bc10
commit
103601e136
1 changed files with 63 additions and 0 deletions
63
.circleci/config.yml
Normal file
63
.circleci/config.yml
Normal file
|
@ -0,0 +1,63 @@
|
|||
version: 2
|
||||
references:
|
||||
unit: &unit
|
||||
run:
|
||||
name: Run test suite
|
||||
command: bundle exec rake
|
||||
|
||||
# Download and cache dependencies
|
||||
restore: &restore
|
||||
keys:
|
||||
- v1-dependencies-{{ checksum "Gemfile.lock" }}
|
||||
# fallback to using the latest cache if no exact match is found
|
||||
- v1-dependencies-
|
||||
|
||||
bundle: &bundle
|
||||
name: install dependencies
|
||||
command: |
|
||||
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
||||
|
||||
save: &save
|
||||
paths:
|
||||
- ./vendor/bundle
|
||||
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
|
||||
|
||||
jobs:
|
||||
"ruby-2.5":
|
||||
docker:
|
||||
- image: circleci/ruby:2.5
|
||||
- image: circleci/redis:4.0
|
||||
steps:
|
||||
- checkout
|
||||
- restore
|
||||
- bundle
|
||||
- save
|
||||
- <<: *unit
|
||||
"ruby-2.6":
|
||||
docker:
|
||||
- image: circleci/ruby:2.6
|
||||
- image: circleci/redis:4.0
|
||||
steps:
|
||||
- checkout
|
||||
- restore
|
||||
- bundle
|
||||
- save
|
||||
- <<: *unit
|
||||
"jruby":
|
||||
docker:
|
||||
- image: circleci/jruby:latest
|
||||
- image: circleci/redis:4.0
|
||||
steps:
|
||||
- checkout
|
||||
- restore
|
||||
- bundle
|
||||
- save
|
||||
- <<: *unit
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
build:
|
||||
jobs:
|
||||
- "ruby-2.5"
|
||||
- "ruby-2.6"
|
||||
- "jruby"
|
Loading…
Add table
Reference in a new issue