From b6fe674c78cdbceb1d872f3dfc874f79d07efcf9 Mon Sep 17 00:00:00 2001
From: Takuro Ashie <ashie@clear-code.com>
Date: Mon, 7 Jun 2021 11:26:36 +0900
Subject: [PATCH] CI: Drop Ruby 2.5

Ruby 2.5 is already EOL:
https://www.ruby-lang.org/en/news/2021/04/05/ruby-2-5-9-released/

Signed-off-by: Takuro Ashie <ashie@clear-code.com>
---
 .github/workflows/linux-test.yaml   |  2 +-
 .github/workflows/windows-test.yaml |  2 +-
 .gitlab-ci.yml                      | 22 ----------------------
 3 files changed, 2 insertions(+), 24 deletions(-)

diff --git a/.github/workflows/linux-test.yaml b/.github/workflows/linux-test.yaml
index d1343e7161..0fa526f131 100644
--- a/.github/workflows/linux-test.yaml
+++ b/.github/workflows/linux-test.yaml
@@ -13,7 +13,7 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        ruby-version: ['3.0', '2.7', '2.6', '2.5']
+        ruby-version: ['3.0', '2.7', '2.6']
         os: [ubuntu-latest]
         experimental: [false]
         include:
diff --git a/.github/workflows/windows-test.yaml b/.github/workflows/windows-test.yaml
index 0ab58ca1f8..24051e11fa 100644
--- a/.github/workflows/windows-test.yaml
+++ b/.github/workflows/windows-test.yaml
@@ -13,7 +13,7 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        ruby-version: ['2.7', '2.6', '2.5']
+        ruby-version: ['2.7', '2.6']
         os:
           - windows-latest
         experimental: [false]
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ea90676743..d1e0de3095 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,16 +13,6 @@ stages:
   - build
   - tests
 
-2-5-8:
-  image: "ruby:2.5.8"
-  stage: build
-  extends: .install-template
-  script:
-    - bundle install --jobs=3 --retry=3
-  cache:
-    key: "$CI_COMMIT_REF_SLUG 2-5-8"
-    paths:
-
 2-6-6:
   image: "ruby:2.6.6"
   stage: build
@@ -64,18 +54,6 @@ rubyhead:
     paths:
       - ./*
 
-2-5-8-test:
-  image: "ruby:2.5.8"
-  stage: tests
-  allow_failure: true
-  extends: .test-template
-  script:
-    - bundle exec rake test
-  cache:
-    key: "$CI_COMMIT_REF_SLUG 2-5-8"
-    paths:
-      - ./*
-
 2-6-6-test:
   image: "ruby:2.6.6"
   stage: tests