oga/.gitlab-ci.yml

34 lines
636 B
YAML
Raw Normal View History

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:
- apk add --update ragel build-base
- if [ "$INSTALL_OPENJDK" == "true" ]; then apk add openjdk8; fi
2017-11-02 01:39:40 +00:00
- gem install bundler --no-ri --no-rdoc
- ruby --version
- gem --version
- bundle --version
- 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.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"
variables:
2017-11-02 13:13:18 +00:00
INSTALL_OPENJDK: "true"
2017-11-02 01:13:00 +00:00
<<: *defaults