Skip to content

Commit 02bb57d

Browse files
authored
Merge pull request github-changelog-generator#705 from github-changelog-generator/ci-extract-rubocop-to-own-job
CI: Make RuboCop a required, initial Workflow Job
2 parents 18334fb + 7fd7684 commit 02bb57d

File tree

1 file changed

+40
-19
lines changed

1 file changed

+40
-19
lines changed

.circleci/config.yml

Lines changed: 40 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Check https://circleci.com/docs/2.0/language-ruby/ for more details
44
#
5-
version: 2.0
5+
version: 2.1
66

77
shared: &shared
88
steps:
@@ -13,36 +13,43 @@ shared: &shared
1313
command: |
1414
bundle install --jobs=4 --retry=3 --path vendor/bundle
1515
16-
- run:
17-
name: Run Rubocop checks
18-
command: |
19-
bundle exec rubocop
20-
2116
- run:
2217
name: Run tests
2318
command: |
2419
bundle exec rspec --color --require spec_helper spec --format progress
2520
2621
jobs:
27-
"ruby-2.3":
22+
"rubocop":
23+
docker:
24+
- image: circleci/ruby:2.6.1-node-browsers
25+
steps:
26+
- checkout
27+
- run: bundle install --jobs=4 --retry=3 --path vendor/bundle
28+
- run: bundle exec rubocop
29+
30+
"ruby-23":
31+
<<: *shared
32+
docker:
33+
- image: circleci/ruby:2.3.8-node-browsers
34+
"ruby-24":
2835
<<: *shared
2936
docker:
30-
- image: circleci/ruby:2.3.7-node-browsers
31-
"ruby-2.4":
37+
- image: circleci/ruby:2.4.5-node-browsers
38+
"ruby-25":
3239
<<: *shared
3340
docker:
34-
- image: circleci/ruby:2.4.4-node-browsers
35-
"ruby-2.5":
41+
- image: circleci/ruby:2.5.3-node-browsers
42+
"ruby-26":
3643
<<: *shared
3744
docker:
38-
- image: circleci/ruby:2.5.1-node-browsers
39-
"jruby-9.1":
45+
- image: circleci/ruby:2.6.1-node-browsers
46+
"jruby-91":
4047
<<: *shared
4148
docker:
4249
- image: circleci/jruby:9.1-jdk
4350
environment:
4451
JRUBY_OPTS: "--debug"
45-
"jruby-9.2":
52+
"jruby-92":
4653
<<: *shared
4754
docker:
4855
- image: circleci/jruby:9.2-jdk
@@ -53,8 +60,22 @@ workflows:
5360
version: 2
5461
build:
5562
jobs:
56-
- "ruby-2.3"
57-
- "ruby-2.4"
58-
- "ruby-2.5"
59-
- "jruby-9.1"
60-
- "jruby-9.2"
63+
- rubocop
64+
- "ruby-23":
65+
requires:
66+
- rubocop
67+
- "ruby-24":
68+
requires:
69+
- rubocop
70+
- "ruby-25":
71+
requires:
72+
- rubocop
73+
- "ruby-26":
74+
requires:
75+
- rubocop
76+
- "jruby-91":
77+
requires:
78+
- rubocop
79+
- "jruby-92":
80+
requires:
81+
- rubocop

0 commit comments

Comments
 (0)