8000 Add test infrastructure and eliminate network dependency · github/ruby@c40a542 · GitHub
[go: up one dir, main page]

Skip to content

Commit c40a542

Browse files
committed
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.
1 parent a0c7c23 commit c40a542

File tree

8 files changed

+3342
-5
lines changed

8 files changed

+3342
-5
lines changed

.downloaded-cache/config.guess

Lines changed: 1506 additions & 0 deletions
Large diffs are not rendered by default.

.downloaded-cache/config.sub

Lines changed: 1793 additions & 0 deletions
Large diffs are not rendered by default.

.gitignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
*.swp
2828
*.yarb
2929
*~
30-
.*-*
3130
.*.list
3231
.*.time
3332
.DS_Store
@@ -212,10 +211,6 @@ lcov*.info
212211
# /spec/bundler
213212
/.rspec_status
214213

215-
# /tool/
216-
/tool/config.guess
217-
/tool/config.sub
218-
219214
# /win32/
220215
/win32/*.ico
221216

Dockerfile.container

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM ubuntu:18.04
2+
3+
RUN apt-get update && apt-get install -y \
4+
build-essential autoconf libtool \
5+
git \
6+
ruby \
7+
pkg-config \
8+
libffi-dev \
9+
libffi6 \
10+
&& apt-get clean
11+
12+
RUN apt-get install -y \
13+
cmake \
14+
gdb \
15+
valgrind
16+
17+
RUN apt-get install -y libssl-dev \
18+
libgdbm5 \
19+
libgdbm-dev \
20+
libedit-dev \
21+
libedit2 \
22+
bison \
23+
hugepages \
24+
leaktracer \
25+
libgdbm-dev
26+
27+
RUN apt-get install -y libjemalloc-dev

Dockerfile.ruby

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM ruby-test:latest
2+
3+
ADD . .
4+
RUN autoconf
5+
RUN ./configure --disable-install-rdoc --with-jemalloc
6+
RUN make -s -j$(nproc)
7+
RUN make test

script/cibuild

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
# Usage: script/cibuild
3+
# CI build script
4+
set -e
5+
6+
docker build -t ruby-test . -f Dockerfile.container
7+
docker build -t ruby-test . -f Dockerfile.ruby --network=none

tool/config.guess

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../.downloaded-cache/config.guess

tool/config.sub

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../.downloaded-cache/config.sub

0 commit comments

Comments
 (0)
0