/
config.yml
55 lines (52 loc) · 1.38 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: 2.1
jobs:
rake_default:
parameters:
image:
description: "Name of the Docker image."
type: string
default: "cimg/ruby:3.1"
docker:
- image: << parameters.image >>
environment:
# CircleCI container has two cores, but Ruby can see 32 cores. So we
# configure test-queue.
# See https://github.com/tmm1/test-queue#environment-variables
TEST_QUEUE_WORKERS: 2
JRUBY_OPTS: "--dev -J-Xmx1000M"
steps:
- checkout
- run: bundle install
- run: bundle exec rake
# Miscellaneous tasks
documentation-checks:
docker:
- image: cimg/ruby:3.1
steps:
- checkout
- run: bundle install
- run:
name: Check documentation syntax
command: bundle exec rake documentation_syntax_check
workflows:
build:
jobs:
- documentation-checks
- rake_default:
name: Ruby 2.6
image: cimg/ruby:2.6
- rake_default:
name: Ruby 2.7
image: cimg/ruby:2.7
- rake_default:
name: Ruby 3.0
image: cimg/ruby:3.0
- rake_default:
name: Ruby 3.1
image: cimg/ruby:3.1
- rake_default:
name: Ruby HEAD
image: rubocophq/circleci-ruby-snapshot:latest # Nightly snapshot build
- rake_default:
name: JRuby 9.3
image: circleci/jruby:9.3