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 12:23:40 +00:00
|
|
|
- apk add --update ragel build-base
|
2017-11-02 13:07:51 +00:00
|
|
|
- if [ "$INSTALL_OPENJDK" == "true" ]; then apk add openjdk8; fi
|
2019-11-05 12:38:17 +00:00
|
|
|
- gem install bundler --no-document
|
2017-11-02 01:39:40 +00:00
|
|
|
- ruby --version
|
|
|
|
- gem --version
|
|
|
|
- bundle --version
|
2017-11-02 11:56:53 +00:00
|
|
|
- bundle install --path vendor --retry=3
|
2017-11-02 01:39:40 +00:00
|
|
|
script:
|
|
|
|
- bundle exec rake
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- vendor/ruby
|
2017-11-02 01:13:00 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-11-05 12:38:17 +00:00
|
|
|
Ruby 2.5:
|
|
|
|
image: "ruby:2.5-alpine"
|
|
|
|
<<: *defaults
|
|
|
|
|
|
|
|
Ruby 2.6:
|
|
|
|
image: "ruby:2.6-alpine"
|
|
|
|
<<: *defaults
|
|
|
|
|
2017-11-02 01:13:00 +00:00
|
|
|
JRuby 9.1:
|
|
|
|
image: "jruby:9.1-alpine"
|
2017-11-02 13:07:51 +00:00
|
|
|
variables:
|
2017-11-02 13:13:18 +00:00
|
|
|
INSTALL_OPENJDK: "true"
|
2017-11-02 01:13:00 +00:00
|
|
|
<<: *defaults
|