-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds e2e to bundler. The tests verify that gems pre-fetched with cachi2 could be built in isolation. Signed-off-by: Alexey Ovchinnikov <[email protected]>
- Loading branch information
1 parent
dbdac14
commit c6c1d49
Showing
3 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
tests/integration/test_data/bundler_everything_present/container/Containerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM docker.io/ruby:3.3 | ||
|
||
# Test disabled network access | ||
RUN if curl -IsS www.google.com; then echo "Has network access!"; exit 1; fi | ||
|
||
# Print cachi2 env vars file | ||
RUN cat /tmp/cachi2.env | ||
|
||
# Check bundler deps | ||
RUN ls /tmp/bundler_everything_present-output/deps/bundler | ||
|
||
# Check content of source repository folder | ||
RUN ls /tmp/bundler_everything_present-source/ | ||
|
||
# This should be a COPY, but the source code and Containerfile are in different directories | ||
RUN cp -r /tmp/bundler_everything_present-source /src | ||
|
||
WORKDIR /src | ||
RUN . /tmp/cachi2.env && bundle install |
19 changes: 19 additions & 0 deletions
19
...s/integration/test_data/bundler_everything_present_except_gemspec/container/Containerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM docker.io/ruby:3.3 | ||
|
||
# Test disabled network access | ||
RUN if curl -IsS www.google.com; then echo "Has network access!"; exit 1; fi | ||
|
||
# Print cachi2 env vars file | ||
RUN cat /tmp/cachi2.env | ||
|
||
# Check bundler deps | ||
RUN ls /tmp/bundler_everything_present_except_gemspec-output/deps/bundler | ||
|
||
# Check content of source repository folder | ||
RUN ls /tmp/bundler_everything_present_except_gemspec-source/ | ||
|
||
# This should be a COPY, but the source code and Containerfile are in different directories | ||
RUN cp -r /tmp/bundler_everything_present_except_gemspec-source /src | ||
|
||
WORKDIR /src | ||
RUN . /tmp/cachi2.env && bundle install |