From 11e83f911bcb64bfdfba5a68815c6a2601c7c27b Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Thu, 2 Nov 2017 14:07:51 +0100 Subject: [PATCH] Try to install openjdk for JRuby This is necessary so "javac" is available. --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6add599..e7de2e1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,7 @@ .defaults: &defaults before_script: - apk add --update ragel build-base + - if [ "$INSTALL_OPENJDK" == "true" ]; then apk add openjdk8; fi - gem install bundler --no-ri --no-rdoc - ruby --version - gem --version @@ -27,4 +28,6 @@ Ruby 2.4: JRuby 9.1: image: "jruby:9.1-alpine" + variables: + INSTALL_OPENJDK: true <<: *defaults