Skip to content

Commit

Permalink
Update .travis.yml and Dockerfile
Browse files Browse the repository at this point in the history
* Updated Rubies to latest version.
* Added ruby-head as allow_failures.
  Because it's good to know new version Ruby's issue as faster before the release.
  • Loading branch information
junaruga authored and rhenium committed May 17, 2017
1 parent 72831bc commit 931be94
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,13 @@ matrix:
- env: RUBY_VERSION=ruby-2.4 OPENSSL_VERSION=libressl-2.3
- env: RUBY_VERSION=ruby-2.4 OPENSSL_VERSION=libressl-2.4
- env: RUBY_VERSION=ruby-2.4 OPENSSL_VERSION=libressl-2.5
- language: ruby
rvm: ruby-head
before_install:
- "rake install_dependencies"
script:
- "rake compile -- --enable-debug"
- "rake test"
allow_failures:
- language: ruby
rvm: ruby-head
24 changes: 12 additions & 12 deletions tool/ruby-openssl-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,45 +42,45 @@ RUN curl -s https://www.openssl.org/source/openssl-1.0.2k.tar.gz | tar -C /build
shared linux-x86_64 && \
make && make install_sw

RUN curl -s https://www.openssl.org/source/openssl-1.1.0d.tar.gz | tar -C /build/openssl -xzf - && \
cd /build/openssl/openssl-1.1.0d && \
RUN curl -s https://www.openssl.org/source/openssl-1.1.0e.tar.gz | tar -C /build/openssl -xzf - && \
cd /build/openssl/openssl-1.1.0e && \
./Configure \
--prefix=/opt/openssl/openssl-1.1.0 \
enable-crypto-mdebug enable-crypto-mdebug-backtrace \
linux-x86_64 && \
make && make install_sw

# Supported libressl versions: 2.3-
RUN curl -s http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.3.9.tar.gz | tar -C /build/openssl -xzf -
RUN cd /build/openssl/libressl-2.3.9 && \
RUN curl -s http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.3.10.tar.gz | tar -C /build/openssl -xzf -
RUN cd /build/openssl/libressl-2.3.10 && \
./configure \
--prefix=/opt/openssl/libressl-2.3 && \
make && make install

RUN curl -s http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.4.4.tar.gz | tar -C /build/openssl -xzf -
RUN cd /build/openssl/libressl-2.4.4 && \
RUN curl -s http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.4.5.tar.gz | tar -C /build/openssl -xzf -
RUN cd /build/openssl/libressl-2.4.5 && \
./configure \
--prefix=/opt/openssl/libressl-2.4 && \
make && make install

RUN curl -s http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.5.0.tar.gz | tar -C /build/openssl -xzf -
RUN cd /build/openssl/libressl-2.5.0 && \
RUN curl -s http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.5.4.tar.gz | tar -C /build/openssl -xzf -
RUN cd /build/openssl/libressl-2.5.4 && \
./configure \
--prefix=/opt/openssl/libressl-2.5 && \
make && make install

# Supported Ruby versions: 2.3-
RUN mkdir -p /build/ruby
RUN curl -s https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.3.tar.gz | tar -C /build/ruby -xzf - && \
cd /build/ruby/ruby-2.3.3 && \
RUN curl -s https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.4.tar.gz | tar -C /build/ruby -xzf - && \
cd /build/ruby/ruby-2.3.4 && \
autoconf && ./configure \
--without-openssl \
--prefix=/opt/ruby/ruby-2.3 \
--disable-install-doc && \
make && make install

RUN curl -s https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.0.tar.gz | tar -C /build/ruby -xzf - && \
cd /build/ruby/ruby-2.4.0 && \
RUN curl -s https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.1.tar.gz | tar -C /build/ruby -xzf - && \
cd /build/ruby/ruby-2.4.1 && \
autoconf && ./configure \
--without-openssl \
--prefix=/opt/ruby/ruby-2.4 \
Expand Down

0 comments on commit 931be94

Please sign in to comment.