2017-11-02 01:39:40 +00:00
|
|
|
---
|
2017-11-02 01:13:00 +00:00
|
|
|
.defaults: &defaults
|
2017-11-02 01:39:40 +00:00
|
|
|
before_script:
|
2017-11-02 11:29:47 +00:00
|
|
|
- apk add --update ragel=6.9
|
2017-11-02 01:39:40 +00:00
|
|
|
- gem install bundler --no-ri --no-rdoc
|
|
|
|
- ruby --version
|
|
|
|
- gem --version
|
|
|
|
- bundle --version
|
|
|
|
- bundle install -j $(nproc) --path vendor --retry=3
|
|
|
|
script:
|
|
|
|
- bundle exec rake
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- vendor/ruby
|
2017-11-02 01:13:00 +00:00
|
|
|
|
|
|
|
Ruby 2.2:
|
2017-11-02 01:39:40 +00:00
|
|
|
image: "ruby:2.2-alpine"
|
2017-11-02 01:13:00 +00:00
|
|
|
<<: *defaults
|
|
|
|
|
|
|
|
Ruby 2.3:
|
2017-11-02 01:39:40 +00:00
|
|
|
image: "ruby:2.3-alpine"
|
2017-11-02 01:13:00 +00:00
|
|
|
<<: *defaults
|
|
|
|
|
|
|
|
Ruby 2.4:
|
2017-11-02 01:39:40 +00:00
|
|
|
image: "ruby:2.4-alpine"
|
2017-11-02 01:13:00 +00:00
|
|
|
<<: *defaults
|
|
|
|
|
|
|
|
JRuby 9.1:
|
|
|
|
image: "jruby:9.1-alpine"
|
|
|
|
<<: *defaults
|