From a6b956bcd04ca785fe766f7f76274a93802c036a Mon Sep 17 00:00:00 2001 From: swaggboi Date: Fri, 10 Dec 2021 17:47:47 -0500 Subject: [PATCH] Implement the tests --- Dockerfile | 4 ++++ README.md | 7 +------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index f6e71cc..6e3a262 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ FROM perl:5.34.0 WORKDIR /opt COPY cgi-bin/ ./cgi-bin/ COPY public/ ./public/ +COPY t/ ./t/ COPY templates/ ./templates/ COPY cpanfile . COPY .mmCreds.xml . @@ -19,6 +20,9 @@ RUN apt-get -y install fortune-mod ruby RUN cpanm --installdeps . RUN gem install cgi +# Test it +RUN prove -l -v + # Finish setting up the environment ENV MOJO_REVERSE_PROXY=1 ENV SERVER_ADMIN="swaggboi@slackware.uk" diff --git a/README.md b/README.md index e3c3b9e..02570a3 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,7 @@ The successor to my homepage. Hold on to your butts. docker build -t www-swagg . -### Run it locally - - docker run -p 3000:3000 www-swagg:latest - -Pull up [http://localhost:3000](http://localhost:3000) and poke around -**TODO:** Should create automated tests for this +Tests are performed during the build process ## Tagging/Pushing