Try to install openjdk for JRuby

This is necessary so "javac" is available.
This commit is contained in:
Yorick Peterse 2017-11-02 14:07:51 +01:00
parent dea9bafee1
commit 11e83f911b
No known key found for this signature in database
GPG Key ID: EDD30D2BEB691AC9
1 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@
.defaults: &defaults .defaults: &defaults
before_script: before_script:
- apk add --update ragel build-base - apk add --update ragel build-base
- if [ "$INSTALL_OPENJDK" == "true" ]; then apk add openjdk8; fi
- gem install bundler --no-ri --no-rdoc - gem install bundler --no-ri --no-rdoc
- ruby --version - ruby --version
- gem --version - gem --version
@ -27,4 +28,6 @@ Ruby 2.4:
JRuby 9.1: JRuby 9.1:
image: "jruby:9.1-alpine" image: "jruby:9.1-alpine"
variables:
INSTALL_OPENJDK: true
<<: *defaults <<: *defaults