8000 Upgrade Ruby 2.7 by eileencodes · Pull Request #114 · github/ruby · GitHub
[go: up one dir, main page]

Skip to content

Upgrade Ruby 2.7 #114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 17, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add test infrastructure and eliminate network dependency
This commit just adds dockerfiles we can run to ensure this repo doesn't
have a network dependency when we compile and install.  I also added the
files necessary to eliminate the network dependency.
  • Loading branch information
tenderlove authored and eileencodes committed Jun 16, 2020
commit 82d3cb93e74e225d72c6d1673caf6ee7e6a5a12a
1,506 changes: 1,506 additions & 0 deletions .downloaded-cache/config.guess

Large diffs are not rendered by default.

1,793 changes: 1,793 additions & 0 deletions .downloaded-cache/config.sub

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
*.swp
*.yarb
*~
.*-*
.*.list
.*.time
.DS_Store
Expand Down Expand Up @@ -212,10 +211,6 @@ lcov*.info
# /spec/bundler
/.rspec_status

# /tool/
/tool/config.guess
/tool/config.sub

# /win32/
/win32/*.ico

Expand Down
27 changes: 27 additions & 0 deletions Dockerfile.container
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM ubuntu:18.04

RUN apt-get update && apt-get install -y \
build-essential autoconf libtool \
git \
ruby \
pkg-config \
libffi-dev \
libffi6 \
&& apt-get clean

RUN apt-get install -y \
cmake \
gdb \
valgrind

RUN apt-get install -y libssl-dev \
libgdbm5 \
libgdbm-dev \
libedit-dev \
libedit2 \
bison \
hugepages \
leaktracer \
libgdbm-dev

RUN apt-get install -y libjemalloc-dev
7 changes: 7 additions & 0 deletions Dockerfile.ruby
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ruby-test:latest

ADD . .
RUN autoconf
RUN ./configure --disable-install-rdoc --with-jemalloc
RUN make -s -j$(nproc)
RUN make test
7 changes: 7 additions & 0 deletions script/cibuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
# Usage: script/cibuild
# CI build script
set -e

docker build -t ruby-test . -f Dockerfile.container
docker build -t ruby-test . -f Dockerfile.ruby --network=none
1 change: 1 addition & 0 deletions tool/config.guess
1 change: 1 addition & 0 deletions tool/config.sub
0