From e811b511b0bacd69a2396ee10b6377bbef09220d Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Thu, 2 Nov 2017 02:39:40 +0100 Subject: [PATCH] Fixed the GitLab CI YAML --- .gitlab-ci.yml | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a18f075..b8cd3f2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,27 +1,28 @@ +--- .defaults: &defaults - before_script: - - sudo apk add --update ragel=6.9 - - 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 + before_script: + - sudo apk add --update ragel=6.9 + - 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 Ruby 2.2: - image: "ruby:2.2-alpine" + image: "ruby:2.2-alpine" <<: *defaults Ruby 2.3: - image: "ruby:2.3-alpine" + image: "ruby:2.3-alpine" <<: *defaults Ruby 2.4: - image: "ruby:2.4-alpine" + image: "ruby:2.4-alpine" <<: *defaults JRuby 9.1: