-
-
Notifications
You must be signed in to change notification settings - Fork 271
/
config.yml
107 lines (99 loc) · 2.67 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
version: 2.1
jobs:
confirm_config_and_documentation:
docker:
- image: circleci/ruby
steps:
- checkout
- run: bundle install
- run: rake confirm_config documentation_syntax_check confirm_documentation
rspec:
parameters:
ruby:
type: string
docker:
- image: circleci/ruby:<<parameters.ruby>>
steps:
- checkout
- run: bundle install
- run: rake spec
rubocop:
parameters:
ruby:
type: string
docker:
- image: circleci/ruby:<<parameters.ruby>>
steps:
- checkout
- run: bundle install
- run: rake internal_investigation
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: bundle exec 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.
- rspec:
requires: [confirm_config_and_documentation]
matrix:
parameters:
ruby: ['2.5', '2.6', '2.7', '3.0']
- rubocop:
requires: [confirm_config_and_documentation]
matrix:
parameters:
ruby: ['2.5', '2.6', '2.7', '3.0']
- edge-rubocop:
requires: [confirm_config_and_documentation]
- jruby
- code-climate