-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM bats/bats | ||
|
||
RUN apk add --no-cache --update python3 py3-pip R | ||
RUN mkdir -p /root/.config/pip | ||
COPY pip.conf /root/.config/pip/pip.conf | ||
COPY Rprofile /root/.Rprofile |
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,5 @@ | ||
local({ | ||
r <- getOption("repos") | ||
r["CRAN"] <- "http://localhost:8080/repository/cran-proxy" | ||
options(repos=r) | ||
}) |
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,3 @@ | ||
[global] | ||
index = http://localhost:8080/repository/pypi-proxy/pypi | ||
index-url = http://localhost:8080/repository/pypi-proxy/simple |
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,9 @@ | ||
#! /usr/bin/env bash | ||
docker build -t nexus_allowlist_bats:latest . | ||
docker run \ | ||
--rm \ | ||
-it \ | ||
-v "$PWD/tests:/code" \ | ||
--network host \ | ||
nexus_allowlist_bats:latest \ | ||
/code |
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,3 @@ | ||
@test "Install data.table" { | ||
Rscript -e 'install.packages("data.table")' | ||
} |
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,5 @@ | ||
@test "Install numpy" { | ||
python3 -m venv ./venv | ||
. ./venv/bin/activate | ||
pip install numpy | ||
} |