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
| | workflows:
version: 2
test:
jobs:
- test-jruby
- test-ruby-2.2
- test-ruby-2.3
- test-ruby-2.4
- test-ruby-2.5
- test-ruby-2.6
version: 2
default-steps: &default-steps
- checkout
- run: sudo apt-get install lighttpd libfcgi-dev libmemcached-dev
# Restore bundle cache
- type: cache-restore
key: rack-{{ checksum "rack.gemspec" }}-{{ checksum "Gemfile" }}
# Bundle install dependencies
- run: bundle install --path vendor/bundle
# Store bundle cache
- type: cache-save
key: rack-{{ checksum "rack.gemspec" }}-{{ checksum "Gemfile" }}
paths:
- vendor/bundle
- run: bundle exec rubocop
- run: bundle exec rake ci
jobs:
test-ruby-2.2:
docker:
- image: circleci/ruby:2.2
# Spawn a process owned by root
# This works around an issue explained here:
# https://github.com/circleci/circleci-images/pull/132
command: sudo /bin/sh
- image: memcached:1.4
steps: *default-steps
test-ruby-2.3:
docker:
- image: circleci/ruby:2.3
# Spawn a process owned by root
# This works around an issue explained here:
# https://github.com/circleci/circleci-images/pull/132
command: sudo /bin/sh
- image: memcached:1.4
steps: *default-steps
test-ruby-2.4:
docker:
- image: circleci/ruby:2.4
# Spawn a process owned by root
# This works around an issue explained here:
# https://github.com/circleci/circleci-images/pull/132
command: sudo /bin/sh
- image: memcached:1.4
steps: *default-steps
test-ruby-2.5:
docker:
- image: circleci/ruby:2.5
# Spawn a process owned by root
# This works around an issue explained here:
# https://github.com/circleci/circleci-images/pull/132
command: sudo /bin/sh
- image: memcached:1.4
steps: *default-steps
test-ruby-2.6:
docker:
- image: circleci/ruby:2.6
# Spawn a process owned by root
# This works around an issue explained here:
# https://github.com/circleci/circleci-images/pull/132
command: sudo /bin/sh
- image: memcached:1.4
steps: *default-steps
test-jruby:
docker:
- image: circleci/jruby
# Spawn a process owned by root
# This works around an issue explained here:
# https://github.com/circleci/circleci-images/pull/132
command: sudo /bin/sh
- image: memcached:1.4
steps: *default-steps
|