Skip to content

Commit acbb79a

Browse files
committed
Add docker-compose.yml for easy testing of older rubies
1 parent 2c5e91c commit acbb79a

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ ruby2_keywords :delegating_method
5656
Bug reports and pull requests are welcome on [GitHub] or
5757
[Ruby Issue Tracking System].
5858

59+
## Development
60+
61+
After checking out the repo, run `bundle install` to install dependencies.
62+
Then, run `bundle exec rake test` to run the tests.
63+
64+
To test on older Ruby versions, you can use docker. E.g. to test on Ruby 2.0,
65+
use `docker-compose run ruby-2.0`.
66+
5967
## License
6068

6169
The gem is available as open source under the terms of the

docker-compose.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
version: '3.0'
2+
3+
services:
4+
ruby-2.0:
5+
image: ruby:2.0
6+
volumes:
7+
- .:/app
8+
command:
9+
bash -c 'cd /app && bundle install && bundle exec rake test'
10+
ruby-2.1:
11+
image: ruby:2.1
12+
volumes:
13+
- .:/app
14+
command:
15+
bash -c 'cd /app && bundle install && bundle exec rake test'
16+
ruby-2.2:
17+
image: ruby:2.2
18+
volumes:
19+
- .:/app
20+
command:
21+
bash -c 'cd /app && bundle install && bundle exec rake test'
22+
ruby-2.3:
23+
image: ruby:2.3
24+
volumes:
25+
- .:/app
26+
command:
27+
bash -c 'cd /app && bundle install && bundle exec rake test'
28+
ruby-2.4:
29+
image: ruby:2.4
30+
volumes:
31+
- .:/app
32+
command:
33+
bash -c 'cd /app && bundle install && bundle exec rake test'
34+
ruby-2.5:
35+
image: ruby:2.5
36+
volumes:
37+
- .:/app
38+
command:
39+
bash -c 'cd /app && bundle install && bundle exec rake test'
40+
ruby-2.6:
41+
image: ruby:2.6
42+
volumes:
43+
- .:/app
44+
command:
45+
bash -c 'cd /app && bundle install && bundle exec rake test'
46+
ruby-2.7:
47+
image: ruby:2.7
48+
volumes:
49+
- .:/app
50+
command:
51+
bash -c 'cd /app && bundle install && bundle exec rake test'
52+
ruby-3.0:
53+
image: ruby:3.0
54+
volumes:
55+
- .:/app
56+
command:
57+
bash -c 'cd /app && bundle install && bundle exec rake test'

0 commit comments

Comments
 (0)