NIO1 Fix Ruby version in CI (#1965)

* Fix Ruby version in CI

Motivation:

Jazzy and its dependencies require Ruby >= 2.6.

Changes:

* Update Ruby version to 2.6
* Replace deprecated --no-ri and --no-doc flags

Result:

The CI tests should pass.

* Force use of Ruby 2.6 and jazzy 0.13.7

On Ubuntu 14.04, the ruby2.6 package installs Ruby 2.6.2.
But jazzy 0.14.0 requires Ruby >= 2.6.3.

On Ubuntu 18.04, the default ruby package installs Ruby 2.5, which is
too old for jazzy's dependencies.
This commit is contained in:
Nicolas Bachschmidt authored and GitHub committed 2021-09-21 15:13:27 +01:00
1 parent 4d8b27e0e8
commit 6699571a51
3 files changed
+3 -7

No files matched your search

+3 -5
View File
@@ -41,12 +41,10 @@ RUN [ -z $install_curl_from_source ] || ( cd $HOME/.curl && ./configure --with-s
RUN [ -z $install_curl_from_source ] || ldconfig
# ruby and jazzy for docs generation
ARG skip_ruby_from_ppa
RUN [ -n "$skip_ruby_from_ppa" ] || apt-add-repository -y ppa:brightbox/ruby-ng
RUN [ -n "$skip_ruby_from_ppa" ] || { apt-get update && apt-get install -y ruby2.4 ruby2.4-dev; }
RUN [ -z "$skip_ruby_from_ppa" ] || { apt-get update && apt-get install -y ruby ruby-dev; }
RUN apt-add-repository -y ppa:brightbox/ruby-ng
RUN apt-get update && apt-get install -y ruby2.6 ruby2.6-dev;
RUN apt-get update && apt-get install -y libsqlite3-dev
RUN gem install jazzy --no-ri --no-rdoc
RUN gem install jazzy -v 0.13.7 --no-document
# swift
ARG swift_version=4.0.3
-1
View File
@@ -8,7 +8,6 @@ services:
args:
ubuntu_version : "18.04"
swift_version : "4.2"
skip_ruby_from_ppa : "true"
unit-tests:
image: swift-nio:18.04-4.2
-1
View File
@@ -8,7 +8,6 @@ services:
args:
ubuntu_version: "18.04"
swift_version: "5.0"
skip_ruby_from_ppa: "true"
unit-tests:
image: swift-nio:18.04-5.0