Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b93a214

Browse files
tenderloveeileencodes
authored andcommitted
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 bad7ab3 commit b93a214

File tree

8 files changed

+3342
-5
lines changed

8 files changed

+3342
-5
lines changed

.downloaded-cache/config.guess

+1,506
Large diffs are not rendered by default.

.downloaded-cache/config.sub

+1,793
Large diffs are not rendered by default.

.gitignore

-5
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

+27
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

+7
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

+7
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

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../.downloaded-cache/config.guess

tool/config.sub

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../.downloaded-cache/config.sub

0 commit comments

Comments
 (0)