-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.yml
58 lines (58 loc) · 1.43 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
# Ruby CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-ruby/ for more details
#
version: 2.1
jobs:
build: &build
docker:
- image: ruby
working_directory: ~/repo
steps:
- checkout
- run:
name: install dependencies
command: |
gem install bundler -v 2.1.2
bundle config set path vendor/bundle
bundle install --jobs=4 --retry=3
# run tests!
- run:
name: run tests
command: |
mkdir /tmp/test-results
bundle exec rubocop --format progress --format junit --out /tmp/test-results/rubocop.xml
bundle exec rspec --format progress \
--format RspecJunitFormatter \
--out /tmp/test-results/rspec.xml \
--format progress
# collect reports
- store_test_results:
path: /tmp/test-results
- store_artifacts:
path: /tmp/test-results
destination: test-results
ruby-24:
<<: *build
docker:
- image: circleci/ruby:2.4
ruby-25:
<<: *build
docker:
- image: circleci/ruby:2.5
ruby-26:
<<: *build
docker:
- image: circleci/ruby:2.6
ruby-27:
<<: *build
docker:
- image: circleci/ruby:2.7
workflows:
version: 2
ruby-multi-build:
jobs:
- ruby-24
- ruby-25
- ruby-26
- ruby-27