-
-
Notifications
You must be signed in to change notification settings - Fork 270
/
config.yml
140 lines (128 loc) · 3.39 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
version: 2
rspec: &rspec
steps:
- checkout
- run: bundle install
- run: rake spec
rubocop: &rubocop
steps:
- checkout
- run: bundle install
- run: rake internal_investigation
jobs:
confirm_config_and_documentation:
docker:
- image: circleci/ruby
steps:
- checkout
- run: bundle install
- run: rake confirm_config documentation_syntax_check confirm_documentation
# Ruby 2.4
ruby-2.4-rspec:
docker:
- image: circleci/ruby:2.4
<<: *rspec
ruby-2.4-rubocop:
docker:
- image: circleci/ruby:2.4
<<: *rubocop
# Ruby 2.5
ruby-2.5-rspec:
docker:
- image: circleci/ruby:2.5
<<: *rspec
ruby-2.5-rubocop:
docker:
- image: circleci/ruby:2.5
<<: *rubocop
# Ruby 2.6
ruby-2.6-rspec:
docker:
- image: circleci/ruby:2.6
<<: *rspec
ruby-2.6-rubocop:
docker:
- image: circleci/ruby:2.6
<<: *rubocop
# Ruby 2.7
ruby-2.7-rspec:
docker:
- image: circleci/ruby:2.7
<<: *rspec
ruby-2.7-rubocop:
docker:
- image: circleci/ruby:2.7
<<: *rubocop
edge-rubocop:
docker:
- image: circleci/ruby
steps:
- checkout
- run:
name: Use latest RuboCop from `master`
command: |
echo "gem 'rubocop', github: 'rubocop-hq/rubocop'" > Gemfile.local
- run: bundle install --no-cache
- run: rake spec
- run: rake internal_investigation
# JRuby
jruby:
docker:
- image: circleci/jruby:9
steps:
- checkout
- run: sudo apt-get install -y make
- run: bundle lock
- restore_cache:
keys:
- bundle-v2-{{ checksum "Gemfile.lock" }}
- bundle-v2-
- run: bundle install --path vendor/bundle
- save_cache:
key: bundle-v2-{{ checksum "Gemfile.lock" }}
paths:
- vendor/bundle
- run: rake internal_investigation spec
code-climate:
docker:
- image: circleci/ruby
steps:
- checkout
- run: bundle install
- run:
name: Setup Code Climate test-reporter
command: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- run:
name: Run specs
command: |
./cc-test-reporter before-build
rake coverage
./cc-test-reporter after-build --exit-code $?
workflows:
version: 2
build:
jobs:
- confirm_config_and_documentation
# Use `requires: [confirm_config_and_documentation]` to trick Circle CI into starting the slow jruby job early.
- ruby-2.4-rspec:
requires: [confirm_config_and_documentation]
- ruby-2.4-rubocop:
requires: [confirm_config_and_documentation]
- ruby-2.5-rspec:
requires: [confirm_config_and_documentation]
- ruby-2.5-rubocop:
requires: [confirm_config_and_documentation]
- ruby-2.6-rspec:
requires: [confirm_config_and_documentation]
- ruby-2.6-rubocop:
requires: [confirm_config_and_documentation]
- ruby-2.7-rspec:
requires: [confirm_config_and_documentation]
- ruby-2.7-rubocop:
requires: [confirm_config_and_documentation]
- edge-rubocop:
requires: [confirm_config_and_documentation]
- jruby
- code-climate