From fda22c2e9911278aa2fb01728b9063694b932243 Mon Sep 17 00:00:00 2001 From: "ellipsis-dev[bot]" <65095814+ellipsis-dev[bot]@users.noreply.github.com> Date: Thu, 9 May 2024 20:58:13 +0000 Subject: [PATCH] Add ellipsis.yaml and Dockerfile --- ellipsis.Dockerfile | 21 +++++++++++++++++++++ ellipsis.yaml | 11 +++++++++++ 2 files changed, 32 insertions(+) create mode 100644 ellipsis.Dockerfile create mode 100644 ellipsis.yaml diff --git a/ellipsis.Dockerfile b/ellipsis.Dockerfile new file mode 100644 index 0000000..9c16c09 --- /dev/null +++ b/ellipsis.Dockerfile @@ -0,0 +1,21 @@ +FROM php:8.2-cli + +ENV DEBIAN_FRONTEND noninteractive +RUN apt-get -y clean \ + && apt-get -y dist-upgrade \ + && apt-get -y update --fix-missing \ + && apt-get -y install locales + +RUN apt-get -y install zip libzip-dev git + +RUN docker-php-ext-install zip sockets pcntl + +ENV COMPOSER_ALLOW_SUPERUSER 1 +RUN curl -sS https://getcomposer.org/installer | php \ + && mv composer.phar /usr/local/bin/composer + +WORKDIR /src + +COPY . . + +RUN composer install diff --git a/ellipsis.yaml b/ellipsis.yaml new file mode 100644 index 0000000..46815f2 --- /dev/null +++ b/ellipsis.yaml @@ -0,0 +1,11 @@ +# See https://docs.ellipsis.dev for all available configurations. + +version: 1.3 + +build: + file: "ellipsis.Dockerfile" + commands: + - name: "unit_tests" + command: "./vendor/bin/phpunit" + description: "Run unit tests" +