Add test stage

This commit is contained in:
Quentin McGaw (desktop) 2021-08-02 21:25:42 -04:00
parent 16225e441d
commit e9a517fde8
2 changed files with 7 additions and 2 deletions

View File

@ -5,7 +5,6 @@ tests
.editorconfig
.env.example
.env.testing
.env.travis
.gitattributes
.gitignore
.styleci.yml
@ -13,5 +12,4 @@ tests
changelog.md
Dockerfile
LICENSE
phpunit.xml
README.md

View File

@ -20,6 +20,13 @@ COPY artisan composer.json composer.lock ./
COPY database ./database
RUN composer install --prefer-dist --no-scripts --no-dev --no-autoloader
FROM --platform=${BUILDPLATFORM} vendor AS test
COPY . .
RUN mv .env.travis .env
RUN composer install
RUN php artisan key:generate
ENTRYPOINT [ "/srv/vendor/bin/phpunit" ]
FROM debian:${DEBIAN_VERSION}
ENV DEBIAN_FRONTEND=noninteractive