mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-02 08:15:40 +02:00
Add test stage
This commit is contained in:
parent
16225e441d
commit
e9a517fde8
@ -5,7 +5,6 @@ tests
|
|||||||
.editorconfig
|
.editorconfig
|
||||||
.env.example
|
.env.example
|
||||||
.env.testing
|
.env.testing
|
||||||
.env.travis
|
|
||||||
.gitattributes
|
.gitattributes
|
||||||
.gitignore
|
.gitignore
|
||||||
.styleci.yml
|
.styleci.yml
|
||||||
@ -13,5 +12,4 @@ tests
|
|||||||
changelog.md
|
changelog.md
|
||||||
Dockerfile
|
Dockerfile
|
||||||
LICENSE
|
LICENSE
|
||||||
phpunit.xml
|
|
||||||
README.md
|
README.md
|
||||||
|
@ -20,6 +20,13 @@ COPY artisan composer.json composer.lock ./
|
|||||||
COPY database ./database
|
COPY database ./database
|
||||||
RUN composer install --prefer-dist --no-scripts --no-dev --no-autoloader
|
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}
|
FROM debian:${DEBIAN_VERSION}
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user